Skip to content

Commit

Permalink
feat: add APIError codes for stage instance (#5888)
Browse files Browse the repository at this point in the history
  • Loading branch information
iShibi committed Jun 20, 2021
1 parent 174b7a7 commit c850ae1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/Constants.js
Expand Up @@ -591,6 +591,7 @@ exports.VerificationLevels = createEnum(['NONE', 'LOW', 'MEDIUM', 'HIGH', 'VERY_
* * UNKNOWN_WEBHOOK
* * UNKNOWN_BAN
* * UNKNOWN_GUILD_TEMPLATE
* * UNKNOWN_STAGE_INSTANCE
* * BOT_PROHIBITED_ENDPOINT
* * BOT_ONLY_ENDPOINT
* * ANNOUNCEMENT_EDIT_LIMIT_EXCEEDED
Expand Down Expand Up @@ -641,6 +642,7 @@ exports.VerificationLevels = createEnum(['NONE', 'LOW', 'MEDIUM', 'HIGH', 'VERY_
* * INVALID_API_VERSION
* * CANNOT_DELETE_COMMUNITY_REQUIRED_CHANNEL
* * REACTION_BLOCKED
* * STAGE_ALREADY_OPEN
* * RESOURCE_OVERLOADED
* @typedef {string} APIError
*/
Expand All @@ -662,6 +664,7 @@ exports.APIErrors = {
UNKNOWN_WEBHOOK: 10015,
UNKNOWN_BAN: 10026,
UNKNOWN_GUILD_TEMPLATE: 10057,
UNKNOWN_STAGE_INSTANCE: 10067,
BOT_PROHIBITED_ENDPOINT: 20001,
BOT_ONLY_ENDPOINT: 20002,
ANNOUNCEMENT_EDIT_LIMIT_EXCEEDED: 20022,
Expand Down Expand Up @@ -713,6 +716,7 @@ exports.APIErrors = {
CANNOT_DELETE_COMMUNITY_REQUIRED_CHANNEL: 50074,
INVALID_STICKER_SENT: 50081,
REACTION_BLOCKED: 90001,
STAGE_ALREADY_OPEN: 150006,
RESOURCE_OVERLOADED: 130000,
};

Expand Down
2 changes: 2 additions & 0 deletions typings/index.d.ts
Expand Up @@ -2553,6 +2553,7 @@ declare module 'discord.js' {
UNKNOWN_WEBHOOK: 10015;
UNKNOWN_BAN: 10026;
UNKNOWN_GUILD_TEMPLATE: 10057;
UNKNOWN_STAGE_INSTANCE: 10067;
BOT_PROHIBITED_ENDPOINT: 20001;
BOT_ONLY_ENDPOINT: 20002;
ANNOUNCEMENT_EDIT_LIMIT_EXCEEDED: 20022;
Expand Down Expand Up @@ -2602,6 +2603,7 @@ declare module 'discord.js' {
CANNOT_DELETE_COMMUNITY_REQUIRED_CHANNEL: 50074;
INVALID_STICKER_SENT: 50081;
REACTION_BLOCKED: 90001;
STAGE_ALREADY_OPEN: 150006;
RESOURCE_OVERLOADED: 130000;
}

Expand Down

0 comments on commit c850ae1

Please sign in to comment.