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
ConstructorDescriptionGuildInviteCreateEvent
(JDA api, long responseNumber, Invite invite, GuildChannel channel) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.invite.GenericGuildInviteEvent
getChannel, getChannelType, getCode, getUrl
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GuildInviteCreateEvent
-
-
Method Details
-
getInvite
The invite which was created.- Returns:
Invite
-