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
Indicates that an
Invite was created in a Guild.
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 can MANAGE_CHANNEL.
-
Constructor Summary
ConstructorsConstructorDescriptionGuildInviteCreateEvent(JDA api, long responseNumber, Invite invite, GuildChannel channel) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.invite.GenericGuildInviteEvent
getCategory, getChannel, getChannelType, getCode, getNewsChannel, getStageChannel, getStoreChannel, getTextChannel, getUrl, getVoiceChannelMethods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuildMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
Constructor Details
-
GuildInviteCreateEvent
-
-
Method Details
-
getInvite
The invite which was created.- Returns:
Invite
-