Class GuildMessageDeleteEvent

  • All Implemented Interfaces:
    GenericEvent

    public class GuildMessageDeleteEvent
    extends GenericGuildMessageEvent
    Indicates that a Guild Message was deleted.

    Can be used retrieve affected TextChannel and the id of the deleted Message.

    Requirements

    This event requires the GUILD_MESSAGES intent to be enabled.

    • Constructor Detail

      • GuildMessageDeleteEvent

        public GuildMessageDeleteEvent​(@Nonnull
                                       JDA api,
                                       long responseNumber,
                                       long messageId,
                                       @Nonnull
                                       TextChannel channel)