From 2335451310d52e5b22b59891a40f26ad69dab4cd Mon Sep 17 00:00:00 2001 From: Kshitij Anurag <230598819+kshitijanurag@users.noreply.github.com> Date: Wed, 17 Jun 2026 00:48:13 +0530 Subject: [PATCH] feat(RESTJsonErrorCode): add error code `20015`, `50167`, and `340015` (#1686) --- deno/rest/common.ts | 6 +++++- rest/common.ts | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/deno/rest/common.ts b/deno/rest/common.ts index 3af4e62f..eff66e86 100644 --- a/deno/rest/common.ts +++ b/deno/rest/common.ts @@ -71,7 +71,8 @@ export enum RESTJSONErrorCodes { NotAuthorizedToPerformThisActionOnThisApplication = 20_012, - ActionCannotBePerformedDueToSlowmodeRateLimit = 20_016, + ThisActionRequiresAPremiumSubscription = 20_015, + ActionCannotBePerformedDueToSlowmodeRateLimit, TheMazeIsntMeantForYou, OnlyTheOwnerOfThisAccountCanPerformThisAction, @@ -279,6 +280,8 @@ export enum RESTJSONErrorCodes { VoiceMessagesCannotBeEdited, CannotDeleteGuildSubscriptionIntegration, + CannotSendVoiceEffectWhenUserIsServerMutedDeafenedOrSuppressed = 50_167, + YouCannotSendVoiceMessagesInThisChannel = 50_173, TheUserAccountMustFirstBeVerified = 50_178, @@ -336,6 +339,7 @@ export enum RESTJSONErrorCodes { WebhookServicesCannotBeUsedInForumChannels, MessageBlockedByHarmfulLinksFilter = 240_000, + AccessToJoiningNewServersHasBeenLimitedForTheUser = 340_015, CannotEnableOnboardingRequirementsAreNotMet = 350_000, CannotUpdateOnboardingWhileBelowRequirements, diff --git a/rest/common.ts b/rest/common.ts index 3af4e62f..eff66e86 100644 --- a/rest/common.ts +++ b/rest/common.ts @@ -71,7 +71,8 @@ export enum RESTJSONErrorCodes { NotAuthorizedToPerformThisActionOnThisApplication = 20_012, - ActionCannotBePerformedDueToSlowmodeRateLimit = 20_016, + ThisActionRequiresAPremiumSubscription = 20_015, + ActionCannotBePerformedDueToSlowmodeRateLimit, TheMazeIsntMeantForYou, OnlyTheOwnerOfThisAccountCanPerformThisAction, @@ -279,6 +280,8 @@ export enum RESTJSONErrorCodes { VoiceMessagesCannotBeEdited, CannotDeleteGuildSubscriptionIntegration, + CannotSendVoiceEffectWhenUserIsServerMutedDeafenedOrSuppressed = 50_167, + YouCannotSendVoiceMessagesInThisChannel = 50_173, TheUserAccountMustFirstBeVerified = 50_178, @@ -336,6 +339,7 @@ export enum RESTJSONErrorCodes { WebhookServicesCannotBeUsedInForumChannels, MessageBlockedByHarmfulLinksFilter = 240_000, + AccessToJoiningNewServersHasBeenLimitedForTheUser = 340_015, CannotEnableOnboardingRequirementsAreNotMet = 350_000, CannotUpdateOnboardingWhileBelowRequirements,