Class MessageReactionRemoveEmoteEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.message.GenericMessageEvent
-
- net.dv8tion.jda.api.events.message.react.MessageReactionRemoveEmoteEvent
-
- All Implemented Interfaces:
GenericEvent
public class MessageReactionRemoveEmoteEvent extends GenericMessageEvent
Indicates that all reactions for a specific emoji/emote were removed by a moderator.Can be used to detect which emoji/emote was removed.
Requirements
This event requires at least one of the following intents (Will not fire at all if neither is enabled):
GUILD_MESSAGE_REACTIONS
to work in guild text channelsDIRECT_MESSAGE_REACTIONS
to work in private channels
- Since:
- 4.2.0
-
-
Constructor Summary
Constructors Constructor Description MessageReactionRemoveEmoteEvent(JDA api, long responseNumber, long messageId, MessageChannel channel, MessageReaction reaction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageReaction
getReaction()
TheMessageReaction
that was removed.MessageReaction.ReactionEmote
getReactionEmote()
TheReactionEmote
.-
Methods inherited from class net.dv8tion.jda.api.events.message.GenericMessageEvent
getChannel, getChannelType, getGuild, getMessageId, getMessageIdLong, getPrivateChannel, getTextChannel, isFromGuild, isFromType
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
MessageReactionRemoveEmoteEvent
public MessageReactionRemoveEmoteEvent(@Nonnull JDA api, long responseNumber, long messageId, @Nonnull MessageChannel channel, @Nonnull MessageReaction reaction)
-
-
Method Detail
-
getReaction
@Nonnull public MessageReaction getReaction()
TheMessageReaction
that was removed.- Returns:
- The removed MessageReaction
-
getReactionEmote
@Nonnull public MessageReaction.ReactionEmote getReactionEmote()
- Returns:
- The ReactionEmote
-
-