From ca6612e0a4f313731009a37a81c3a0834e6a0cd8 Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Sat, 22 May 2021 13:53:21 +0300 Subject: [PATCH] chore(RESTErrorCodes): correct casing for OAuth BREAKING CHANGE: This properly capitalizes certain error codes with the right OAuth capitalization --- deno/rest/common.ts | 8 ++++---- rest/common.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deno/rest/common.ts b/deno/rest/common.ts index 7519561d..5e455af8 100644 --- a/deno/rest/common.ts +++ b/deno/rest/common.ts @@ -77,9 +77,9 @@ export enum RESTJSONErrorCodes { CannotSendMessagesToThisUser, CannotSendMessagesInVoiceChannel, ChannelVerificationLevelTooHighForYouToGainAccess, - Oauth2ApplicationDoesNotHaveBot, - Oauth2ApplicationLimitReached, - InvalidOauth2State, + OAuth2ApplicationDoesNotHaveBot, + OAuth2ApplicationLimitReached, + InvalidOAuth2State, MissingPermissions, InvalidToken, NoteWasTooLong, @@ -90,7 +90,7 @@ export enum RESTJSONErrorCodes { CannotExecuteActionOnSystemMessage, CannotExecuteActionOnThisChannelType = 50024, - InvalidOauth2AccessToken, + InvalidOAuth2AccessToken, InvalidWebhookToken = 50027, diff --git a/rest/common.ts b/rest/common.ts index eb5edd47..0ec8491b 100644 --- a/rest/common.ts +++ b/rest/common.ts @@ -77,9 +77,9 @@ export const enum RESTJSONErrorCodes { CannotSendMessagesToThisUser, CannotSendMessagesInVoiceChannel, ChannelVerificationLevelTooHighForYouToGainAccess, - Oauth2ApplicationDoesNotHaveBot, - Oauth2ApplicationLimitReached, - InvalidOauth2State, + OAuth2ApplicationDoesNotHaveBot, + OAuth2ApplicationLimitReached, + InvalidOAuth2State, MissingPermissions, InvalidToken, NoteWasTooLong, @@ -90,7 +90,7 @@ export const enum RESTJSONErrorCodes { CannotExecuteActionOnSystemMessage, CannotExecuteActionOnThisChannelType = 50024, - InvalidOauth2AccessToken, + InvalidOAuth2AccessToken, InvalidWebhookToken = 50027,