Class ReactionRemoveEvent


public class ReactionRemoveEvent extends MessageEvent
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 Details

  • Method Details

    • getUserId

      public Snowflake getUserId()
      Gets the Snowflake ID of the User who's reaction has been removed.
      Returns:
      The ID of the User who's reaction has been removed.
    • getUser

      public Mono<User> getUser()
      Requests to retrieve the User who's reaction has been removed.
      Returns:
      A Mono where, upon successful completion, emits the User who's reaction has been removed. If an error is received, it is emitted through the Mono.
    • getChannelId

      public Snowflake getChannelId()
      Gets the Snowflake ID of the MessageChannel containing the Message the reaction was removed from.
      Returns:
      The ID of the MessageChannel involved.
    • getChannel

      public Mono<MessageChannel> getChannel()
      Requests to retrieve the MessageChannel containing the Message the reaction was removed from.
      Returns:
      A Mono where, upon successful completion, emits the MessageChannel containing the Message involved. If an error is received, it is emitted through the Mono.
    • getMessageId

      public Snowflake getMessageId()
      Gets the Snowflake ID of the Message the reaction was removed from.
      Returns:
      The ID of the Message involved.
    • getMessage

      public Mono<Message> getMessage()
      Requests to retrieve the Message the reaction was removed from.
      Returns:
      A Mono where, upon completion, emits the Message the reaction was removed from. If an error is received, it is emitted through the Mono.
    • getGuildId

      public Optional<Snowflake> getGuildId()
      Gets the 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.
      Returns:
      The ID of the Guild involved, if present.
    • getGuild

      public Mono<Guild> getGuild()
      Requests to retrieve the Guild the Message involved is in, if present. This may not be available if the Message was sent in a private channel.
      Returns:
      A Mono where, upon successful completion, emits the Guild containing the Message involved, if present. If an error is received, it is emitted through the Mono.
    • getEmoji

      public ReactionEmoji getEmoji()
      The ReactionEmoji that was removed from a message.
      Returns:
      The Emoji that has been removed.
    • toString

      public String toString()
      Overrides:
      toString in class Object