addReactionToMessage static method

Future addReactionToMessage(
  1. String reaction,
  2. String messageId
)

Add reaction reaction to message with id messageId.

Implementation

static Future<MessageReaction> addReactionToMessage(
  String reaction,
  String messageId,
) async {
  MercuryRequest req = await _req();
  req.message = Message(id: messageId);
  req.reaction = MessageReaction(emoji: reaction);

  MercuryResponse res = await _client.addReactionToMessage(req);
  return res.reaction;
}