ShardState
@discordeno/gateway • Docs
Documentation / @discordeno/gateway / ShardState
Enumeration: ShardState
Enumeration Members
Connected
Connected:
0
Shard is fully connected to the gateway and receiving events from Discord.
Defined in
Connecting
Connecting:
1
Shard started to connect to the gateway. This is only used if the shard is not currently trying to identify or resume.
Defined in
Disconnected
Disconnected:
2
Shard got disconnected and reconnection actions have been started.
Defined in
Identifying
Identifying:
4
Shard is trying to identify with the gateway to create a new session.
Defined in
Offline
Offline:
6
Shard got shut down studied or due to a not (self) fixable error and may not attempt to reconnect on its own.
Defined in
Resuming
Resuming:
5
Shard is trying to resume a session with the gateway.
Defined in
Unidentified
Unidentified:
3
The shard is connected to the gateway but only heartbeating. At this state the shard has not been identified with discord.