- All Implemented Interfaces:
public class MessageBulkDeleteEvent extends Event
Indicates that a bulk deletion is executed in a
JDABuilder.setBulkDeleteSplittingEnabled(boolean)to false in order to enable this event.
Can be used to detect that a large chunk of Messages is deleted in a GuildMessageChannel. Providing a list of Message IDs and the specific GuildMessageChannel.
This event requires at least one of the following intents (Will not fire at all if neither is enabled):
GUILD_MESSAGESto work in guild message channels
DIRECT_MESSAGESto work in private channels
(JDA api, long responseNumber, GuildMessageChannel channel, List<String> messageIds)
Method SummaryModifier and TypeMethodDescription
getGuild()List of messages that have been deleted.
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
getChannel@Nonnull public GuildMessageChannelUnion getChannel()
- The TextChannel
- The Guild
getMessageIdsList of messages that have been deleted.
- The list of message ids