From 40abc1ee21558347c0b99cf8c6246fc72da78b72 Mon Sep 17 00:00:00 2001 From: Fleny Date: Fri, 24 Jul 2026 13:57:15 +0200 Subject: [PATCH] feat: Add 20015 & 50167 HTTPJsonErrorCodes (#5177) --- packages/types/src/discord/opcodes.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/types/src/discord/opcodes.ts b/packages/types/src/discord/opcodes.ts index e1ce1cb64..84a0f06e1 100644 --- a/packages/types/src/discord/opcodes.ts +++ b/packages/types/src/discord/opcodes.ts @@ -172,6 +172,8 @@ export enum HTTPJsonErrorCodes { ExplicitContent = 20009, /** You are not authorized to perform this action on this application */ UnauthorizedAction = 20012, + /** This action requires a premium subscription */ + PremiumRequired = 20015, /** This action cannot be performed due to slowmode rate limit */ SlowmodeRateLimit = 20016, /** Only the owner of this account can perform this action */ @@ -439,6 +441,8 @@ export enum HTTPJsonErrorCodes { VoiceMessageCannotEdit = 50162, /** Cannot delete guild subscription integration */ DeleteSubscriptionIntegration = 50163, + /** Cannot send voice effect when user is server muted, deafened, or suppressed */ + VoiceEffectUserMuted = 50167, /** You cannot send voice messages in this channel. */ NoVoiceMessages = 50173, /** The user account must first be verified */