Class GuildInviteCreateEvent
- 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.GuildInviteCreateEvent
-
- All Implemented Interfaces:
GenericEvent
public class GuildInviteCreateEvent extends GenericGuildInviteEvent
Indicates that anInvite
was created in aGuild
.Can be used to track invites for moderation purposes.
Requirements
This event requires the
GUILD_INVITES
intent to be enabled.
This event will only fire for invites created in channels where you canMANAGE_CHANNEL
.
-
-
Constructor Summary
Constructors Constructor Description GuildInviteCreateEvent(JDA api, long responseNumber, Invite invite, GuildChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Invite
getInvite()
The invite which was created.-
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
-
GuildInviteCreateEvent
public GuildInviteCreateEvent(@Nonnull JDA api, long responseNumber, @Nonnull Invite invite, @Nonnull GuildChannel channel)
-
-