From a4b8623b60150b3d9e3d2d54a2ef07e240e3c5c7 Mon Sep 17 00:00:00 2001 From: Shubham Parihar Date: Wed, 18 Aug 2021 02:16:17 +0530 Subject: [PATCH] feat: add maximum prune requests reached api error (#6427) --- src/util/Constants.js | 2 ++ typings/index.d.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/util/Constants.js b/src/util/Constants.js index ec3b569c2..82cac1785 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -636,6 +636,7 @@ exports.VerificationLevels = createEnum(['NONE', 'LOW', 'MEDIUM', 'HIGH', 'VERY_ * * MAXIMUM_NON_GUILD_MEMBERS_BANS * * MAXIMUM_BAN_FETCHES * * MAXIMUM_NUMBER_OF_STICKERS_REACHED + * * MAXIMUM_PRUNE_REQUESTS * * UNAUTHORIZED * * ACCOUNT_VERIFICATION_REQUIRED * * DIRECT_MESSAGES_TOO_FAST @@ -764,6 +765,7 @@ exports.APIErrors = { MAXIMUM_NON_GUILD_MEMBERS_BANS: 30035, MAXIMUM_BAN_FETCHES: 30037, MAXIMUM_NUMBER_OF_STICKERS_REACHED: 30039, + MAXIMUM_PRUNE_REQUESTS: 30040, UNAUTHORIZED: 40001, ACCOUNT_VERIFICATION_REQUIRED: 40002, DIRECT_MESSAGES_TOO_FAST: 40003, diff --git a/typings/index.d.ts b/typings/index.d.ts index dc3140d03..cf6fdacbd 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -2825,6 +2825,7 @@ export interface APIErrors { MAXIMUM_NON_GUILD_MEMBERS_BANS: 30035; MAXIMUM_BAN_FETCHES: 30037; MAXIMUM_NUMBER_OF_STICKERS_REACHED: 30039; + MAXIMUM_PRUNE_REQUESTS: 30040; UNAUTHORIZED: 40001; ACCOUNT_VERIFICATION_REQUIRED: 40002; DIRECT_MESSAGES_TOO_FAST: 40003;