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(GatewayDiscordClient gateway,
ShardInfo shardInfo,
int gatewayVersion,
User self,
Set<ReadyEvent.Guild> guilds,
String sessionId,
List<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.
|
List<String> |
getTrace()
Gets the trace provided by Discord.
|
String |
toString() |
getClient, getShardInfo
public ReadyEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, int gatewayVersion, User self, Set<ReadyEvent.Guild> guilds, String sessionId, List<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 List<String> getTrace()
Guilds
the user is in.