Skip to content

Commit

Permalink
feat(RESTJSONErrorCodes): add new errors (#506)
Browse files Browse the repository at this point in the history
* feat(RESTJSONErrorCodes): add new errors

* feat: add 50138

* feat: add 40043

* chore: up-to-date with upstream PR
  • Loading branch information
vvito7 committed Jul 20, 2022
1 parent 2b53b20 commit 65b672e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deno/rest/common.ts
Expand Up @@ -128,11 +128,15 @@ export enum RESTJSONErrorCodes {
FeatureTemporarilyDisabledServerSide,
UserBannedFromThisGuild,

ConnectionHasBeenRevoked = 40012,

TargetUserIsNotConnectedToVoice = 40032,
ThisMessageWasAlreadyCrossposted,

ApplicationCommandWithThatNameAlreadyExists = 40041,

ApplicationInteractionFailedToSend = 40043,

InteractionHasAlreadyBeenAcknowledged = 40060,
TagNamesMustBeUnique,

Expand Down Expand Up @@ -202,6 +206,8 @@ export enum RESTJSONErrorCodes {

OwnershipCannotBeMovedToABotUser = 50132,

FailedToResizeAssetBelowTheMinimumSize = 50138,

UploadedFileNotFound = 50146,

YouDoNotHavePermissionToSendThisSticker = 50600,
Expand Down Expand Up @@ -237,6 +243,9 @@ export enum RESTJSONErrorCodes {

FailedToCreateStageNeededForStageEvent = 180002,

MessageWasBlockedByAutomaticModeration = 200000,
TitleWasBlockedByAutomaticModeration,

WebhooksCanOnlyCreateThreadsInForumChannels = 220003,
}

Expand Down
9 changes: 9 additions & 0 deletions rest/common.ts
Expand Up @@ -128,11 +128,15 @@ export enum RESTJSONErrorCodes {
FeatureTemporarilyDisabledServerSide,
UserBannedFromThisGuild,

ConnectionHasBeenRevoked = 40012,

TargetUserIsNotConnectedToVoice = 40032,
ThisMessageWasAlreadyCrossposted,

ApplicationCommandWithThatNameAlreadyExists = 40041,

ApplicationInteractionFailedToSend = 40043,

InteractionHasAlreadyBeenAcknowledged = 40060,
TagNamesMustBeUnique,

Expand Down Expand Up @@ -202,6 +206,8 @@ export enum RESTJSONErrorCodes {

OwnershipCannotBeMovedToABotUser = 50132,

FailedToResizeAssetBelowTheMinimumSize = 50138,

UploadedFileNotFound = 50146,

YouDoNotHavePermissionToSendThisSticker = 50600,
Expand Down Expand Up @@ -237,6 +243,9 @@ export enum RESTJSONErrorCodes {

FailedToCreateStageNeededForStageEvent = 180002,

MessageWasBlockedByAutomaticModeration = 200000,
TitleWasBlockedByAutomaticModeration,

WebhooksCanOnlyCreateThreadsInForumChannels = 220003,
}

Expand Down

0 comments on commit 65b672e

Please sign in to comment.