Skip to main content

ShardSocketCloseCodes

@discordeno/bot


Documentation / @discordeno/bot / ShardSocketCloseCodes

Enumeration: ShardSocketCloseCodes

Defined in: packages/gateway/dist/types/types.d.ts:147

Enumeration Members

ReIdentifying

ReIdentifying: 3066

Defined in: packages/gateway/dist/types/types.d.ts:162

Shard is re-identifying therefore the old connection needs to be closed.


Resharded

Resharded: 3065

Defined in: packages/gateway/dist/types/types.d.ts:160

Special close code reserved for Discordeno's zero-downtime resharding system.


ResumeClosingOldConnection

ResumeClosingOldConnection: 3024

Defined in: packages/gateway/dist/types/types.d.ts:151

A resume has been requested and therefore the old connection needs to be closed.


Shutdown

Shutdown: 3000

Defined in: packages/gateway/dist/types/types.d.ts:149

A regular Shard shutdown.


TestingFinished

TestingFinished: 3064

Defined in: packages/gateway/dist/types/types.d.ts:158

Discordeno's gateway tests hae been finished, therefore the Shard can be turned off.


ZombiedConnection

ZombiedConnection: 3010

Defined in: packages/gateway/dist/types/types.d.ts:156

Did not receive a heartbeat ACK in time. Closing the shard and creating a new session.