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
public class GuildTimeoutEvent extends Event
Indicates that a guild failed to ready up and timed out.
Usually this event will be fired right before aReadyEvent
.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()
andJDA.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
Constructors Constructor Description GuildTimeoutEvent(JDA api, long guildId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getGuildId()
The guild id for the timed out guildlong
getGuildIdLong()
The guild id for the timed out guild-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
GuildTimeoutEvent
public GuildTimeoutEvent(@Nonnull JDA api, long guildId)
-
-