From 37c8279a3b265bdace842d3c2f0d03b1b34f2eeb Mon Sep 17 00:00:00 2001 From: ayntgl Date: Thu, 16 Dec 2021 21:49:08 +0400 Subject: [PATCH 1/2] Add 50109 error code to JsonErrorCodes enum --- src/types/codes/jsonErrorCodes.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/codes/jsonErrorCodes.ts b/src/types/codes/jsonErrorCodes.ts index bbd8f5b56..d27e635cd 100644 --- a/src/types/codes/jsonErrorCodes.ts +++ b/src/types/codes/jsonErrorCodes.ts @@ -120,6 +120,7 @@ export enum JsonErrorCodes { ThisServerIsNotAvailableInYourLocation = 50095, ThisServerNeedsMonetizationEnabledInOrderToPerformThisAction = 50097, ThisServerNeedsMoreBoostsToPerformThisAction = 50101, + TheRequestBodyContainsInvalidJSON = 50109, TwoFactorIsRequiredForThisOperation = 60003, NoUsersWithDiscordTagExist = 80004, ReactionWasBlocked = 90001, From 4629c002b052ca7ecf60155b1ebed8f77d3532af Mon Sep 17 00:00:00 2001 From: ayntgl Date: Thu, 16 Dec 2021 21:57:25 +0400 Subject: [PATCH 2/2] Add 20029 & 50055 to JsonErrorCodes enum --- src/types/codes/jsonErrorCodes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/types/codes/jsonErrorCodes.ts b/src/types/codes/jsonErrorCodes.ts index bbd8f5b56..15ddc7173 100644 --- a/src/types/codes/jsonErrorCodes.ts +++ b/src/types/codes/jsonErrorCodes.ts @@ -49,6 +49,7 @@ export enum JsonErrorCodes { OnlyTheOwnerOfThisAccountCanPerformThisAction = 20018, ThisMessageCannotBeEditedDueToAnnouncementRateLimits = 20022, TheChannelYouAreWritingHasHitTheWriteRateLimit = 20028, + TheWriteActionYouArePerformingOnTheServerHasHitTheWriteRateLimit, YourStageTopicOrServerNameOrServerDescriptionOrChannelNamesContainsWordsThatAreNotAllowedForPublicStages = 20031, GuildPremiumSubscriptionLevelTooLow = 20035, MaximumNumberOfGuildsReached = 30001, @@ -111,6 +112,7 @@ export enum JsonErrorCodes { AnInviteWasAcceptedToAGuildTheApplicationsBotIsNotIn, InvalidApiVersionProvided = 50041, CannotSelfRedeemThisGift = 50054, + InvalidGuild, PaymentSourceRequiredToRedeemGift = 50070, CannotDeleteAChannelRequiredForCommunityGuilds = 50074, InvalidStickerSent = 50081,