Skip to main content

GatewayCloseEventCodes

@discordeno/bot


Documentation / @discordeno/bot / GatewayCloseEventCodes

Enumeration: GatewayCloseEventCodes

Defined in: packages/types/dist/types/discord/opcodes.d.ts:30

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

Enumeration Members

AlreadyAuthenticated

AlreadyAuthenticated: 4005

Defined in: packages/types/dist/types/discord/opcodes.d.ts:46

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


AuthenticationFailed

AuthenticationFailed: 4004

Defined in: packages/types/dist/types/discord/opcodes.d.ts:44

The account token sent with your identify payload is incorrect.


DecodeError

DecodeError: 4002

Defined in: packages/types/dist/types/discord/opcodes.d.ts:40

You sent an invalid payload to us. Don't do that!


DisallowedIntents

DisallowedIntents: 4014

Defined in: packages/types/dist/types/discord/opcodes.d.ts:62

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 approved for.


GoingAway

GoingAway: 1001

Defined in: packages/types/dist/types/discord/opcodes.d.ts:34

The endpoint is going away. Invalidates bot and bot will appear offline.


InvalidApiVersion

InvalidApiVersion: 4012

Defined in: packages/types/dist/types/discord/opcodes.d.ts:58

You sent an invalid version for the gateway.


InvalidIntents

InvalidIntents: 4013

Defined in: packages/types/dist/types/discord/opcodes.d.ts:60

You sent an invalid intent for a Gateway Intent. You may have incorrectly calculated the bitwise value.


InvalidSeq

InvalidSeq: 4007

Defined in: packages/types/dist/types/discord/opcodes.d.ts:48

The sequence sent when resuming the session was invalid. Reconnect and start a new session.


InvalidShard

InvalidShard: 4010

Defined in: packages/types/dist/types/discord/opcodes.d.ts:54

You sent us an invalid shard when identifying.


NormalClosure

NormalClosure: 1000

Defined in: packages/types/dist/types/discord/opcodes.d.ts:32

A normal closure of the gateway. You may attempt to reconnect.


NotAuthenticated

NotAuthenticated: 4003

Defined in: packages/types/dist/types/discord/opcodes.d.ts:42

You sent us a payload prior to identifying, or this session has been invalidated.


RateLimited

RateLimited: 4008

Defined in: packages/types/dist/types/discord/opcodes.d.ts:50

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


SessionTimedOut

SessionTimedOut: 4009

Defined in: packages/types/dist/types/discord/opcodes.d.ts:52

Your session timed out. Reconnect and start a new one.


ShardingRequired

ShardingRequired: 4011

Defined in: packages/types/dist/types/discord/opcodes.d.ts:56

The session would have handled too many guilds - you are required to shard your connection in order to connect.


UnknownError

UnknownError: 4000

Defined in: packages/types/dist/types/discord/opcodes.d.ts:36

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


UnknownOpcode

UnknownOpcode: 4001

Defined in: packages/types/dist/types/discord/opcodes.d.ts:38

You sent an invalid Gateway opcode or an invalid payload for an opcode. Don't do that!