Class GuildDeleteEvent


  • public class GuildDeleteEvent
    extends GuildEvent
    Dispatched in two different scenarios:
    1. The bot is kicked from or leaves a guild.
    2. A guild becomes unavailable during an outage. In this scenario, unavailable will be true.

    This event is dispatched by Discord.

    See Also:
    Guild Delete
    • Method Detail

      • getGuildId

        public Snowflake getGuildId()
        Gets the Snowflake ID of the Guild that is involved in the event.
        Returns:
        The ID of the Guild.
      • getGuild

        public Optional<Guild> getGuild()
        Gets the Guild involved in this event, if present.
        Returns:
        The Guild involved in this event, if present.
      • isUnavailable

        public boolean isUnavailable()
        Gets whether or not the Guild is now unavailable.
        Returns:
        Whether or not the Guild is unavailable.