Class GuildMessageReactionRemoveEmoteEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.message.guild.GenericGuildMessageEvent
-
- net.dv8tion.jda.api.events.message.guild.react.GuildMessageReactionRemoveEmoteEvent
-
- All Implemented Interfaces:
GenericEvent
public class GuildMessageReactionRemoveEmoteEvent extends GenericGuildMessageEvent
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 the
GUILD_MESSAGE_REACTIONS
intent to be enabled.- Since:
- 4.2.0
-
-
Constructor Summary
Constructors Constructor Description GuildMessageReactionRemoveEmoteEvent(JDA api, long responseNumber, TextChannel channel, MessageReaction reaction, long messageId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextChannel
getChannel()
TheTextChannel
where the reaction happenedjava.lang.String
getMessageId()
The id of the affected messagelong
getMessageIdLong()
The id of the affected messageMessageReaction
getReaction()
TheMessageReaction
that was removed.MessageReaction.ReactionEmote
getReactionEmote()
TheReactionEmote
.-
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
GuildMessageReactionRemoveEmoteEvent
public GuildMessageReactionRemoveEmoteEvent(@Nonnull JDA api, long responseNumber, @Nonnull TextChannel channel, @Nonnull MessageReaction reaction, long messageId)
-
-
Method Detail
-
getChannel
@Nonnull public TextChannel getChannel()
TheTextChannel
where the reaction happened- Overrides:
getChannel
in classGenericGuildMessageEvent
- Returns:
- The TextChannel
-
getReaction
@Nonnull public MessageReaction getReaction()
TheMessageReaction
that was removed.- Returns:
- The removed MessageReaction
-
getReactionEmote
@Nonnull public MessageReaction.ReactionEmote getReactionEmote()
- Returns:
- The ReactionEmote
-
getMessageIdLong
public long getMessageIdLong()
The id of the affected message- Overrides:
getMessageIdLong
in classGenericGuildMessageEvent
- Returns:
- The id of the message
-
getMessageId
@Nonnull public java.lang.String getMessageId()
The id of the affected message- Overrides:
getMessageId
in classGenericGuildMessageEvent
- Returns:
- The id of the message
-
-