Package net.dv8tion.jda.api.events.guild
Class GuildTimeoutEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GuildTimeoutEvent
- All Implemented Interfaces:
GenericEvent
Indicates that a guild failed to ready up and timed out.
Usually this event will be fired right before a
Usually this event will be fired right before a
ReadyEvent
.
This will mark the guild as unavailable and it will not be usable when JDA becomes ready.
You can check all unavailable guilds with ReadyEvent.getGuildUnavailableCount()
and JDA.getUnavailableGuilds()
.
Developer Note
Discord may also explicitly mark guilds as unavailable during the setup, in which case this event will not fire. It is recommended to check for unavailable guilds in the ready event explicitly to avoid any ambiguity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe guild id for the timed out guildlong
The guild id for the timed out guildMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GuildTimeoutEvent
-
-
Method Details
-
getGuildIdLong
public long getGuildIdLong()The guild id for the timed out guild- Returns:
- The guild id
-
getGuildId
The guild id for the timed out guild- Returns:
- The guild id
-