Class MessageDeleteEvent


  • public class MessageDeleteEvent
    extends GenericMessageEvent
    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!

    • Constructor Detail

      • MessageDeleteEvent

        public MessageDeleteEvent​(JDA api,
                                  long responseNumber,
                                  long messageId,
                                  MessageChannel channel)