From f573e4bb62b46dac8dda8641781887bd97c6ebff Mon Sep 17 00:00:00 2001 From: ITOH Date: Wed, 12 May 2021 09:16:19 +0200 Subject: [PATCH] add: MissingRequiredOAuth2Scope error code --- src/types/codes/json_error_codes.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/types/codes/json_error_codes.ts b/src/types/codes/json_error_codes.ts index a30db5c75..09bfb218b 100644 --- a/src/types/codes/json_error_codes.ts +++ b/src/types/codes/json_error_codes.ts @@ -74,9 +74,9 @@ export enum DiscordJsonErrorCodes { CannotSendMessagesToThisUser, CannotSendMessagesInAVoiceChannel, ChannelVerificationLevelIsTooHighForYouToGainAccess, - Oauth2ApplicationDoesNotHaveABot, - Oauth2ApplicationLimitReached, - InvalidOauth2State, + OAuth2ApplicationDoesNotHaveABot, + OAuth2ApplicationLimitReached, + InvalidOAuth2State, YouLackPermissionsToPerformThatAction, InvalidAuthenticationTokenProvided, NoteWasTooLong, @@ -85,7 +85,8 @@ export enum DiscordJsonErrorCodes { InviteCodeWasEitherInvalidOrTaken, CannotExecuteActionOnASystemMessage, CannotExecuteActionOnThisChannelType = 50024, - InvalidOauth2AccessTokenProvided, + InvalidOAuth2AccessTokenProvided, + MissingRequiredOAuth2Scope, InvalidWebhookTokenProvided, InvalidRecipients = 50033, AMessageProvidedWasTooOldToBulkDelete,