public class MessageBulkDeleteEvent extends Event
TextChannel
.
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 TextChannel. Providing a list of Message IDs and the specific TextChannel.
Constructor | Description |
---|---|
MessageBulkDeleteEvent(JDA api,
long responseNumber,
TextChannel channel,
java.util.List<java.lang.String> messageIds) |
Modifier and Type | Method | Description |
---|---|---|
TextChannel |
getChannel() |
The
TextChannel where the messages have been deleted |
Guild |
getGuild() |
The
Guild where the messages were deleted. |
java.util.List<java.lang.String> |
getMessageIds() |
List of messages that have been deleted.
|
getJDA, getResponseNumber
public MessageBulkDeleteEvent(JDA api, long responseNumber, TextChannel channel, java.util.List<java.lang.String> messageIds)
public TextChannel getChannel()
TextChannel
where the messages have been deletedpublic java.util.List<java.lang.String> getMessageIds()