mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +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:
@@ -95,6 +95,8 @@ exports.WSCodes = {
|
||||
4004: 'TOKEN_INVALID',
|
||||
4010: 'SHARDING_INVALID',
|
||||
4011: 'SHARDING_REQUIRED',
|
||||
4013: 'INVALID_INTENTS',
|
||||
4014: 'DISALLOWED_INTENTS',
|
||||
};
|
||||
|
||||
const AllowedImageFormats = ['webp', 'png', 'jpg', 'gif'];
|
||||
|
||||
Reference in New Issue
Block a user