Class ReactionRemoveAllEvent


public class ReactionRemoveAllEvent extends MessageEvent
Dispatched when all of the reactions on a message are removed.

guildId may not be present if the message was in a private channel.

Corresponding reactions removes are NOT dispatched for messages included in this event.

This event is dispatched by Discord.

See Also:
  • Constructor Details

  • Method Details

    • getChannelId

      public Snowflake getChannelId()
      Gets the Snowflake ID of the channel containing the Message and the removed Reactions.
      Returns:
      The ID of the MessageChannel involved.
    • getChannel

      public Mono<MessageChannel> getChannel()
      Requests to retrieve the MessageChannel containing the Message and the removed reactions.
      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 reactions were removed from in this event.
      Returns:
      The ID of the Message involved.
    • getMessage

      public Mono<Message> getMessage()
      Requests to retrieve the Message the reactions were removed from in this event.
      Returns:
      A Mono where, upon successful completion, emits the Message the reactions were 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 containing the Message the reactions were removed from, if present. This may not be available if the Message was sent in a private channel.
      Returns:
      The ID of the Guild containing the Message involved, if present.
    • getGuild

      public Mono<Guild> getGuild()
      Request to retrieve the Guild containing the Message the reactions were removed from, if present. This may not 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object