enum GatewayCloseCodes

external
export declare enum GatewayCloseCodes

https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes

Members

external
AlreadyAuthenticated = 4005

You sent more than one identify payload. Don't do that!

external
AuthenticationFailed = 4004

The account token sent with your identify payload is incorrectSee https://discord.com/developers/docs/topics/gateway-events#identify

external
DecodeError = 4002

You sent an invalid payload to us. Don't do that!See https://discord.com/developers/docs/topics/gateway#sending-events

external
DisallowedIntents = 4014

You sent a disallowed intent for a Gateway Intent. You may have tried to specify an intent that you have not enabled or are not whitelisted forSee https://discord.com/developers/docs/topics/gateway#gateway-intentsSee https://discord.com/developers/docs/topics/gateway#privileged-intents

external
InvalidAPIVersion = 4012

You sent an invalid version for the gateway

external
InvalidIntents = 4013

You sent an invalid intent for a Gateway Intent. You may have incorrectly calculated the bitwise valueSee https://discord.com/developers/docs/topics/gateway#gateway-intents

external
InvalidSeq = 4007

The sequence sent when resuming the session was invalid. Reconnect and start a new sessionSee https://discord.com/developers/docs/topics/gateway-events#resume

external
InvalidShard = 4010

You sent us an invalid shard when identifyingSee https://discord.com/developers/docs/topics/gateway#sharding

external
NotAuthenticated = 4003

You sent us a payload prior to identifyingSee https://discord.com/developers/docs/topics/gateway-events#identify

external
RateLimited = 4008

Woah nelly! You're sending payloads to us too quickly. Slow it down! You will be disconnected on receiving this

external
SessionTimedOut = 4009

Your session timed out. Reconnect and start a new one

external
ShardingRequired = 4011

The session would have handled too many guilds - you are required to shard your connection in order to connectSee https://discord.com/developers/docs/topics/gateway#sharding

external
UnknownError = 4000

We're not sure what went wrong. Try reconnecting?

external
UnknownOpcode = 4001

You sent an invalid Gateway opcode or an invalid payload for an opcode. Don't do that!See https://discord.com/developers/docs/topics/gateway-events#payload-structure