GatewayCloseEventCodes
@discordeno/bot • Docs
Documentation / @discordeno/bot / GatewayCloseEventCodes
Enumeration: GatewayCloseEventCodes
https://discord.com/developers/docs/topics/opcodes-and-status-codes#opcodes-and-status-codes
Enumeration Members
AlreadyAuthenticated
AlreadyAuthenticated:
4005
You sent more than one identify payload. Don't do that!
Defined in
packages/types/dist/types/shared.d.ts:797
AuthenticationFailed
AuthenticationFailed:
4004
The account token sent with your identify payload is incorrect.
Defined in
packages/types/dist/types/shared.d.ts:795
DecodeError
DecodeError:
4002
You sent an invalid payload to us. Don't do that!
Defined in
packages/types/dist/types/shared.d.ts:791
DisallowedIntents
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 approved for.
Defined in
packages/types/dist/types/shared.d.ts:813
InvalidApiVersion
InvalidApiVersion:
4012
You sent an invalid version for the gateway.
Defined in
packages/types/dist/types/shared.d.ts:809
InvalidIntents
InvalidIntents:
4013
You sent an invalid intent for a Gateway Intent. You may have incorrectly calculated the bitwise value.
Defined in
packages/types/dist/types/shared.d.ts:811
InvalidSeq
InvalidSeq:
4007
The sequence sent when resuming the session was invalid. Reconnect and start a new session.
Defined in
packages/types/dist/types/shared.d.ts:799
InvalidShard
InvalidShard:
4010
You sent us an invalid shard when identifying.
Defined in
packages/types/dist/types/shared.d.ts:805
NormalClosure
NormalClosure:
1000
A normal closure of the gateway. You may attempt to reconnect.
Defined in
packages/types/dist/types/shared.d.ts:785
NotAuthenticated
NotAuthenticated:
4003
You sent us a payload prior to identifying, or this session has been invalidated.
Defined in
packages/types/dist/types/shared.d.ts:793
RateLimited
RateLimited:
4008
Woah nelly! You're sending payloads to us too quickly. Slow it down! You will be disconnected on receiving this.
Defined in
packages/types/dist/types/shared.d.ts:801
SessionTimedOut
SessionTimedOut:
4009
Your session timed out. Reconnect and start a new one.
Defined in
packages/types/dist/types/shared.d.ts:803
ShardingRequired
ShardingRequired:
4011
The session would have handled too many guilds - you are required to shard your connection in order to connect.
Defined in
packages/types/dist/types/shared.d.ts:807
UnknownError
UnknownError:
4000
We're not sure what went wrong. Try reconnecting?
Defined in
packages/types/dist/types/shared.d.ts:787
UnknownOpcode
UnknownOpcode:
4001
You sent an invalid Gateway opcode or an invalid payload for an opcode. Don't do that!
Defined in
packages/types/dist/types/shared.d.ts:789