API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
import { GatewayCloseCodes } from "https://deno.land/x/discord_api_types@0.37.54/v8.ts";
Members
The account token sent with your identify payload is incorrect
See https://discord.com/developers/docs/topics/gateway#identify
You sent an invalid payload to us. Don't do that!
See https://discord.com/developers/docs/topics/gateway#sending-payloads
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 for
See https://discord.com/developers/docs/topics/gateway#gateway-intents
See https://discord.com/developers/docs/topics/gateway#privileged-intents
You sent an invalid intent for a Gateway Intent. You may have incorrectly calculated the bitwise value
See https://discord.com/developers/docs/topics/gateway#gateway-intents
The sequence sent when resuming the session was invalid. Reconnect and start a new session
See https://discord.com/developers/docs/topics/gateway#resume
You sent us an invalid shard when identifying
See https://discord.com/developers/docs/topics/gateway#sharding
You sent us a payload prior to identifying
See https://discord.com/developers/docs/topics/gateway#identify
Woah nelly! You're sending payloads to us too quickly. Slow it down! You will be disconnected on receiving this
The session would have handled too many guilds - you are required to shard your connection in order to connect
See https://discord.com/developers/docs/topics/gateway#sharding
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#payloads-and-opcodes