deleteMessageForSelf method

Future<XRPCResponse<DeletedMessageView>> deleteMessageForSelf({
  1. required String convoId,
  2. required String messageId,
  3. Map<String, String>? $unknown,
  4. Map<String, String>? $headers,
  5. PostClient? $client,
})

Implementation

Future<XRPCResponse<DeletedMessageView>> deleteMessageForSelf({
  required String convoId,
  required String messageId,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<DeletedMessageView>(
      ns.chatBskyConvoDeleteMessageForSelf,
      headers: $headers,
      body: {
        'convoId': convoId,
        'messageId': messageId,
        ...?$unknown,
      },
      to: const DeletedMessageViewConverter().fromJson,
      client: $client,
    );