View Source Nostrum.Struct.Event.Ready (Nostrum v0.8.0)
Sent after initial handshake with the gateway
Link to this section Summary
Types
Partial application object with id
and flags
The guilds that the bot user is in
Used for resuming connections.
A pair of two integers {shard_id, num_shards}
.
Event sent after initial handshake with the gateway
Information about the bot user
Gateway version. See https://discord.com/developers/docs/topics/gateway#gateways-gateway-versions
Link to this section Types
@type application() :: Nostrum.Struct.Event.PartialApplication.t()
Partial application object with id
and flags
@type guilds() :: [Nostrum.Struct.Guild.UnavailableGuild.t()]
The guilds that the bot user is in
@type session_id() :: String.t()
Used for resuming connections.
If you are wondering whether you need to use this, you probably don't. Nostrum handles reconnections for you.
@type shard() :: {integer(), non_neg_integer()} | nil
A pair of two integers {shard_id, num_shards}
.
For more information, see https://discord.com/developers/docs/topics/gateway#sharding.
@type t() :: %Nostrum.Struct.Event.Ready{ application: application(), guilds: guilds(), session_id: session_id(), shard: shard(), user: user(), v: v() }
Event sent after initial handshake with the gateway
@type user() :: Nostrum.Struct.User.t()
Information about the bot user
@type v() :: non_neg_integer()
Gateway version. See https://discord.com/developers/docs/topics/gateway#gateways-gateway-versions