Class MessageDeleteEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.message.GenericMessageEvent
net.dv8tion.jda.api.events.message.MessageDeleteEvent
- All Implemented Interfaces:
GenericEvent
Indicates that a Message was deleted in a
MessageChannel
.
Can be used to detect when a Message is deleted. No matter if private or guild.
JDA does not have a cache for messages and is not able to provide previous information due to limitations by the Discord API!
Requirements
This event requires at least one of the following intents (Will not fire at all if neither is enabled):
GUILD_MESSAGES
to work in guild text channelsDIRECT_MESSAGES
to work in private channels
-
Constructor Summary
ConstructorDescriptionMessageDeleteEvent
(JDA api, long responseNumber, long messageId, MessageChannel channel) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.message.GenericMessageEvent
getChannel, getChannelType, getGuild, getGuildChannel, getJumpUrl, getMessageId, getMessageIdLong, isFromGuild, isFromThread, isFromType
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
MessageDeleteEvent
public MessageDeleteEvent(@Nonnull JDA api, long responseNumber, long messageId, @Nonnull MessageChannel channel)
-