Class MessageBulkDeleteEvent


public class MessageBulkDeleteEvent extends MessageEvent
Dispatched when multiple messages are deleted at once.

Corresponding message deletes are NOT dispatched for messages included in this event.

This event is dispatched by Discord.

See Also:
  • Constructor Details

  • Method Details

    • getMessageIds

      public Set<Snowflake> getMessageIds()
      Gets a list of Snowflake IDs of the messages that were deleted.
      Returns:
      a list of IDs of the messages that were deleted.
    • getMessages

      public Set<Message> getMessages()
      Gets a list of Message objects there were deleted in this event.
      Returns:
      a list of Message objects that were deleted.
    • getChannelId

      public Snowflake getChannelId()
      Gets the Snowflake ID of the MessageChannel the messages were deleted in.
      Returns:
      The ID of the MessageChannel that the messages were deleted in.
    • getChannel

      public Mono<MessageChannel> getChannel()
      Requests to retrieve the MessageChannel representation of the Channel the messages were deleted in.
      Returns:
      A Mono where, upon successful completion, emits the MessageChannel the messages were deleted from. If an error is received, it is emitted through the Mono.
    • getGuildId

      public Snowflake getGuildId()
      Gets the Snowflake ID of the Guild the messages were deleted in.
      Returns:
      The ID of the Guild the messages were deleted in.
    • getGuild

      public Mono<Guild> getGuild()
      Requests to retrieve the Guild the messages were deleted in.
      Returns:
      A Mono where, upon successful completion, emits the Guild the messages where deleted from. If an error is received, it is emitted through the Mono.
    • toString

      public String toString()
      Overrides:
      toString in class Object