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_REACTIONSintent 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 TextChannelgetChannel()TheTextChannelwhere the reaction happenedjava.lang.StringgetMessageId()The id of the affected messagelonggetMessageIdLong()The id of the affected messageMessageReactiongetReaction()TheMessageReactionthat was removed.MessageReaction.ReactionEmotegetReactionEmote()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()
TheTextChannelwhere the reaction happened- Overrides:
getChannelin classGenericGuildMessageEvent- Returns:
- The TextChannel
-
getReaction
@Nonnull public MessageReaction getReaction()
TheMessageReactionthat 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:
getMessageIdLongin classGenericGuildMessageEvent- Returns:
- The id of the message
-
getMessageId
@Nonnull public java.lang.String getMessageId()
The id of the affected message- Overrides:
getMessageIdin classGenericGuildMessageEvent- Returns:
- The id of the message
-
-