public class ReadyEvent extends GatewayLifecycleEvent
This event is dispatched by Discord.
Modifier and Type | Class and Description |
---|---|
static class |
ReadyEvent.Guild
An incomplete Guild provided by Discord upon the ready event
|
Constructor and Description |
---|
ReadyEvent(DiscordClient client,
int gatewayVersion,
User self,
Set<ReadyEvent.Guild> guilds,
String sessionId,
String[] trace) |
Modifier and Type | Method and Description |
---|---|
int |
getGatewayVersion()
Gets the gateway protocol version being used.
|
Set<ReadyEvent.Guild> |
getGuilds()
Gets a set of Unavailable
ReadyEvent.Guild . |
User |
getSelf()
Gets the bot
User . |
String |
getSessionId()
Gets the current session ID of the connection.
|
String[] |
getTrace()
Gets the trace provided by Discord.
|
String |
toString() |
public ReadyEvent(DiscordClient client, int gatewayVersion, User self, Set<ReadyEvent.Guild> guilds, String sessionId, String[] trace)
public int getGatewayVersion()
public Set<ReadyEvent.Guild> getGuilds()
ReadyEvent.Guild
. These Guilds
have not yet been provided via a
GuildCreateEvent
Guilds
.public String getSessionId()
public String[] getTrace()
Guilds
the user is in.