mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
feat: document intent error code messages (#3871)
* Add 4013, Invalid Intents close code * Add 4014, Disallowed Intents Code * Add error messages for 4013 & 4014 * Rephrase invalid & disallowed intent error message * Rephrase disallowed intent error message
This commit is contained in:
@@ -17,6 +17,8 @@ const Messages = {
|
||||
|
||||
SHARDING_INVALID: 'Invalid shard settings were provided.',
|
||||
SHARDING_REQUIRED: 'This session would have handled too many guilds - Sharding is required.',
|
||||
INVALID_INTENTS: 'Invalid intent provided for WebSocket intents.',
|
||||
DISALLOWED_INTENTS: 'Privileged intent provided is not enabled or whitelisted.',
|
||||
SHARDING_NO_SHARDS: 'No shards have been spawned.',
|
||||
SHARDING_IN_PROCESS: 'Shards are still being spawned.',
|
||||
SHARDING_ALREADY_SPAWNED: count => `Already spawned ${count} shards.`,
|
||||
|
||||
Reference in New Issue
Block a user