updateMessageReactions function

Future<void> updateMessageReactions(
  1. String messageId, {
  2. String? addReaction,
  3. String? removeReaction,
})

Adds and/or removes reaction on the message with messageId messageId - the ID of the message you reacted on addReaction - the new reaction you want to add removeReaction - the reaction you added before and want to delete

Implementation

Future<void> updateMessageReactions(String messageId,
    {String? addReaction, String? removeReaction}) {
  return UpdateMessageReactionQuery(
    messageId,
    addReaction: addReaction,
    removeReaction: removeReaction,
  ).perform();
}