Skip to content

Commit

Permalink
chore(RESTErrorCodes): correct casing for OAuth
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This properly capitalizes certain error codes with the right OAuth capitalization
  • Loading branch information
vladfrangu committed May 22, 2021
1 parent 63e5e8b commit ca6612e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions deno/rest/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export enum RESTJSONErrorCodes {
CannotSendMessagesToThisUser,
CannotSendMessagesInVoiceChannel,
ChannelVerificationLevelTooHighForYouToGainAccess,
Oauth2ApplicationDoesNotHaveBot,
Oauth2ApplicationLimitReached,
InvalidOauth2State,
OAuth2ApplicationDoesNotHaveBot,
OAuth2ApplicationLimitReached,
InvalidOAuth2State,
MissingPermissions,
InvalidToken,
NoteWasTooLong,
Expand All @@ -90,7 +90,7 @@ export enum RESTJSONErrorCodes {
CannotExecuteActionOnSystemMessage,

CannotExecuteActionOnThisChannelType = 50024,
InvalidOauth2AccessToken,
InvalidOAuth2AccessToken,

InvalidWebhookToken = 50027,

Expand Down
8 changes: 4 additions & 4 deletions rest/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export const enum RESTJSONErrorCodes {
CannotSendMessagesToThisUser,
CannotSendMessagesInVoiceChannel,
ChannelVerificationLevelTooHighForYouToGainAccess,
Oauth2ApplicationDoesNotHaveBot,
Oauth2ApplicationLimitReached,
InvalidOauth2State,
OAuth2ApplicationDoesNotHaveBot,
OAuth2ApplicationLimitReached,
InvalidOAuth2State,
MissingPermissions,
InvalidToken,
NoteWasTooLong,
Expand All @@ -90,7 +90,7 @@ export const enum RESTJSONErrorCodes {
CannotExecuteActionOnSystemMessage,

CannotExecuteActionOnThisChannelType = 50024,
InvalidOauth2AccessToken,
InvalidOAuth2AccessToken,

InvalidWebhookToken = 50027,

Expand Down

0 comments on commit ca6612e

Please sign in to comment.