chore(RESTErrorCodes): correct casing for OAuth

BREAKING CHANGE: This properly capitalizes certain error codes with the right OAuth capitalization
This commit is contained in:
Vlad Frangu
2021-05-22 13:53:21 +03:00
parent 63e5e8b7ab
commit ca6612e0a4
2 changed files with 8 additions and 8 deletions

View File

@@ -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,

View File

@@ -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,