Class ReactionRemoveEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.message.MessageEvent
discord4j.core.event.domain.message.ReactionRemoveEvent
Dispatched when a reaction is removed on a message.
guildId
may not be present if the message was in a private channel.
This event is dispatched by Discord.
- See Also:
-
Constructor Summary
ConstructorDescriptionReactionRemoveEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, long userId, long channelId, long messageId, Long guildId, ReactionEmoji emoji) -
Method Summary
Modifier and TypeMethodDescriptionRequests to retrieve theMessageChannel
containing theMessage
the reaction was removed from.getEmoji()
TheReactionEmoji
that was removed from a message.getGuild()
Requests to retrieve theMessage
the reaction was removed from.getUser()
Requests to retrieve theUser
who's reaction has been removed.toString()
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
ReactionRemoveEvent
public ReactionRemoveEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long userId, long channelId, long messageId, @Nullable Long guildId, ReactionEmoji emoji)
-
-
Method Details
-
getUserId
- Returns:
- The ID of the
User
who's reaction has been removed.
-
getUser
Requests to retrieve theUser
who's reaction has been removed. -
getChannelId
- Returns:
- The ID of the
MessageChannel
involved.
-
getChannel
Requests to retrieve theMessageChannel
containing theMessage
the reaction was removed from.- Returns:
- A
Mono
where, upon successful completion, emits theMessageChannel
containing theMessage
involved. If an error is received, it is emitted through theMono
.
-
getMessageId
- Returns:
- The ID of the
Message
involved.
-
getMessage
Requests to retrieve theMessage
the reaction was removed from. -
getGuildId
Gets theSnowflake
ID of theGuild
theMessage
involved is in, if present. This may not be available if theMessage
was sent in a private channel.- Returns:
- The ID of the
Guild
involved, if present.
-
getGuild
-
getEmoji
TheReactionEmoji
that was removed from a message.- Returns:
- The
Emoji
that has been removed.
-
toString
-