public class ReactionRemoveEvent extends MessageEvent
guildId
may not be present if the message was in a private channel.
This event is dispatched by Discord.
Constructor and Description |
---|
ReactionRemoveEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
long userId,
long channelId,
long messageId,
Long guildId,
ReactionEmoji emoji) |
Modifier and Type | Method and Description |
---|---|
Mono<MessageChannel> |
getChannel()
Requests to retrieve the
MessageChannel containing the Message the reaction was removed from. |
Snowflake |
getChannelId()
|
ReactionEmoji |
getEmoji()
The
ReactionEmoji that was removed from a message. |
Mono<Guild> |
getGuild()
|
Optional<Snowflake> |
getGuildId()
|
Mono<Message> |
getMessage()
Requests to retrieve the
Message the reaction was removed from. |
Snowflake |
getMessageId()
|
Mono<User> |
getUser()
Requests to retrieve the
User who's reaction has been removed. |
Snowflake |
getUserId()
|
String |
toString() |
getClient, getShardInfo
public ReactionRemoveEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long userId, long channelId, long messageId, @Nullable Long guildId, ReactionEmoji emoji)
public Snowflake getChannelId()
MessageChannel
involved.public Mono<MessageChannel> getChannel()
MessageChannel
containing the Message
the reaction was removed from.Mono
where, upon successful completion, emits the MessageChannel
containing the
Message
involved. If an error is received, it is emitted through the Mono
.public Mono<Message> getMessage()
Message
the reaction was removed from.public Optional<Snowflake> getGuildId()
Snowflake
ID of the Guild
the Message
involved is in, if present.
This may not be available if the Message
was sent in a private channel.Guild
involved, if present.public ReactionEmoji getEmoji()
ReactionEmoji
that was removed from a message.Emoji
that has been removed.