Class InviteDeleteEvent


  • public class InviteDeleteEvent
    extends Event
    Dispatched when an invite to a channel is deleted.

    This event is dispatched by Discord.

    See Also:
    Invite Delete
    • Method Detail

      • getGuildId

        public Optional<Snowflake> getGuildId()
        Gets the Snowflake ID of the Guild involved in the event, if present.
        Returns:
        The ID of the guild involved, if present.
      • getGuild

        public Mono<Guild> getGuild()
        Requests to retrieve the Guild that had an invite deleted in this event.
        Returns:
        A Mono where, upon successful completion, emits the Guild involved in the event. If an error is received, it is emitted through the Mono.
      • getChannelId

        public Snowflake getChannelId()
        Gets the Snowflake ID of the Channel where the invite was deleted.
        Returns:
        The ID of the channel involved.
      • getCode

        public final String getCode()
        Gets the invite code (unique ID).
        Returns:
        The invite code (unique ID).