Class MessageReactionRemoveEmojiEvent

java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.message.GenericMessageEvent
net.dv8tion.jda.api.events.message.react.MessageReactionRemoveEmojiEvent
All Implemented Interfaces:
GenericEvent

public class MessageReactionRemoveEmojiEvent extends GenericMessageEvent
Indicates that all reactions for a specific emoji were removed by a moderator.

Can be used to detect which emoji was removed.

Requirements

This event requires at least one of the following intents (Will not fire at all if neither is enabled):

  • Constructor Details

    • MessageReactionRemoveEmojiEvent

      public MessageReactionRemoveEmojiEvent(@Nonnull JDA api, long responseNumber, long messageId, @Nonnull MessageChannel channel, @Nonnull MessageReaction reaction)
  • Method Details

    • getReaction

      @Nonnull public MessageReaction getReaction()
      The MessageReaction that was removed.
      Returns:
      The removed MessageReaction
    • getEmoji

      @Nonnull public EmojiUnion getEmoji()
      The reaction Emoji.
      Shortcut for getReaction().getEmoji().
      Returns:
      The Emoji for the reaction