getMessageContext method

Future<XRPCResponse<GetMessageContextOutput>> getMessageContext({
  1. String? convoId,
  2. required String messageId,
  3. int? before,
  4. int? after,
  5. Map<String, String>? $unknown,
  6. Map<String, String>? $headers,
  7. GetClient? $client,
})

Implementation

Future<XRPCResponse<GetMessageContextOutput>> getMessageContext({
  String? convoId,
  required String messageId,
  int? before,
  int? after,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<GetMessageContextOutput>(
      ns.chatBskyModerationGetMessageContext,
      headers: $headers,
      parameters: {
        if (convoId != null) 'convoId': convoId,
        'messageId': messageId,
        if (before != null) 'before': before.toString(),
        if (after != null) 'after': after.toString(),
        ...?$unknown,
      },
      to: const GetMessageContextOutputConverter().fromJson,
      client: $client,
    );