Class GuildInviteDeleteEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.guild.invite.GenericGuildInviteEvent
-
- net.dv8tion.jda.api.events.guild.invite.GuildInviteDeleteEvent
-
- All Implemented Interfaces:
GenericEvent
public class GuildInviteDeleteEvent extends GenericGuildInviteEvent
Indicates than anInvite
was deleted from aGuild
.Can be used to track invite deletion for moderation purposes.
Requirements
This event requires the
GUILD_INVITES
intent to be enabled.
This event will only fire for invites deleted in channels where you canMANAGE_CHANNEL
.
-
-
Constructor Summary
Constructors Constructor Description GuildInviteDeleteEvent(JDA api, long responseNumber, java.lang.String code, GuildChannel channel)
-
Method Summary
-
Methods inherited from class net.dv8tion.jda.api.events.guild.invite.GenericGuildInviteEvent
getCategory, getChannel, getChannelType, getCode, getStageChannel, getStoreChannel, getTextChannel, getUrl, getVoiceChannel
-
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
GuildInviteDeleteEvent
public GuildInviteDeleteEvent(@Nonnull JDA api, long responseNumber, @Nonnull java.lang.String code, @Nonnull GuildChannel channel)
-
-