public class GuildDeleteEvent extends GuildEvent
unavailable
will be true.This event is dispatched by Discord.
Constructor and Description |
---|
GuildDeleteEvent(DiscordClient client,
long guildId,
Guild guild,
boolean unavailable) |
Modifier and Type | Method and Description |
---|---|
Optional<Guild> |
getGuild()
Gets the
Guild involved in this event, if present. |
Snowflake |
getGuildId()
|
boolean |
isUnavailable()
Gets whether or not the
Guild is now unavailable. |
String |
toString() |
public GuildDeleteEvent(DiscordClient client, long guildId, @Nullable Guild guild, boolean unavailable)
public Optional<Guild> getGuild()
Guild
involved in this event, if present.Guild
involved in this event, if present.public boolean isUnavailable()
Guild
is now unavailable.Guild
is unavailable.