ShardState
@discordeno/bot • Docs
Documentation / @discordeno/bot / ShardState
Enumeration: ShardState
Enumeration Members
Connected
Connected:
0
Shard is fully connected to the gateway and receiving events from Discord.
Defined in
packages/gateway/dist/types/types.d.ts:5
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
packages/gateway/dist/types/types.d.ts:7
Disconnected
Disconnected:
2
Shard got disconnected and reconnection actions have been started.
Defined in
packages/gateway/dist/types/types.d.ts:9
Identifying
Identifying:
4
Shard is trying to identify with the gateway to create a new session.
Defined in
packages/gateway/dist/types/types.d.ts:13
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
packages/gateway/dist/types/types.d.ts:17
Resuming
Resuming:
5
Shard is trying to resume a session with the gateway.
Defined in
packages/gateway/dist/types/types.d.ts:15
Unidentified
Unidentified:
3
The shard is connected to the gateway but only heartbeating. At this state the shard has not been identified with discord.
Defined in
packages/gateway/dist/types/types.d.ts:11