chatBskyConvoAddReaction function

Future<XRPCResponse<ConvoAddReactionOutput>> chatBskyConvoAddReaction({
  1. required String convoId,
  2. required String messageId,
  3. required String value,
  4. required ServiceContext $ctx,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction.

Implementation

Future<XRPCResponse<ConvoAddReactionOutput>> chatBskyConvoAddReaction({
  required String convoId,
  required String messageId,
  required String value,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.chatBskyConvoAddReaction,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'convoId': convoId,
    'messageId': messageId,
    'value': value,
  },
  to: const ConvoAddReactionOutputConverter().fromJson,
);