Skip to main content

ShardState

@discordeno/gatewayDocs


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

gateway/src/types.ts:6


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

gateway/src/types.ts:8


Disconnected

Disconnected: 2

Shard got disconnected and reconnection actions have been started.

Defined in

gateway/src/types.ts:10


Identifying

Identifying: 4

Shard is trying to identify with the gateway to create a new session.

Defined in

gateway/src/types.ts:14


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

gateway/src/types.ts:18


Resuming

Resuming: 5

Shard is trying to resume a session with the gateway.

Defined in

gateway/src/types.ts:16


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

gateway/src/types.ts:12