public class ReadyEvent extends Event
Can be used to indicate when JDA finished populating internal objects and is ready to be used. When this is fired all available entities are cached and accessible.
Constructor | Description |
---|---|
ReadyEvent(JDA api,
long responseNumber) |
Modifier and Type | Method | Description |
---|---|---|
int |
getGuildAvailableCount() |
Number of available guilds for this session.
|
int |
getGuildTotalCount() |
Sum of both
getGuildAvailableCount() and getGuildUnavailableCount() . |
int |
getGuildUnavailableCount() |
Number of guilds currently not available to this session
Discord failed to connect these guilds to our gateway and we had to discard them for now. |
getJDA, getResponseNumber
public ReadyEvent(JDA api, long responseNumber)
public int getGuildAvailableCount()
GuildReadyEvent
later.getGuildTotalCount()
,
getGuildUnavailableCount()
public int getGuildUnavailableCount()
GuildReadyEvent
.public int getGuildTotalCount()
getGuildAvailableCount()
and getGuildUnavailableCount()
.