Class GuildInviteCreateEvent

  • All Implemented Interfaces:
    GenericEvent

    public class GuildInviteCreateEvent
    extends GenericGuildInviteEvent
    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 Detail

      • GuildInviteCreateEvent

        public GuildInviteCreateEvent​(@Nonnull
                                      JDA api,
                                      long responseNumber,
                                      @Nonnull
                                      Invite invite,
                                      @Nonnull
                                      GuildChannel channel)
    • Method Detail

      • getInvite

        @Nonnull
        public Invite getInvite()
        The invite which was created.
        Returns:
        Invite