chore: add missing json error codes (#184)

This commit is contained in:
Advaith
2021-08-21 17:33:04 -07:00
committed by GitHub
parent b07b9030c1
commit f2b58acbf8
2 changed files with 28 additions and 2 deletions

View File

@@ -36,6 +36,9 @@ export enum RESTJSONErrorCodes {
UnknownGiftCode = 10038,
UnknownStream = 10049,
UnknownPremiumServerSubscribeCooldown,
UnknownGuildTemplate = 10057,
UnknownDiscoverableServerCategory = 10059,
@@ -48,6 +51,8 @@ export enum RESTJSONErrorCodes {
UnknownStageInstance,
UnknownGuildMemberVerificationForm,
UnknownGuildWelcomeScreen,
UnknownGuildScheduledEvent,
UnknownGuildScheduledEventUser,
BotsCannotUseThisEndpoint = 20001,
OnlyBotsCanUseThisEndpoint,
@@ -98,6 +103,7 @@ export enum RESTJSONErrorCodes {
MaximumNumberOfBanFetchesHasBeenReached = 30037,
MaximumNumberOfStickersReached = 30039,
MaximumNumberOfPruneRequestsHasBeenReached,
Unauthorized = 40001,
VerifyYourAccount,
@@ -135,6 +141,7 @@ export enum RESTJSONErrorCodes {
CannotExecuteActionOnThisChannelType = 50024,
InvalidOAuth2AccessToken,
MissingRequiredOAuth2Scope,
InvalidWebhookToken = 50027,
InvalidRole,
@@ -149,7 +156,9 @@ export enum RESTJSONErrorCodes {
FileUploadedExceedsMaximumSize = 50045,
InvalidFileUploaded,
CannotSelfRedeemThisGift = 50070,
CannotSelfRedeemThisGift = 50054,
PaymentSourceRequiredToRedeemGift = 50070,
CannotDeleteChannelRequiredForCommunityGuilds = 50074,
@@ -159,6 +168,10 @@ export enum RESTJSONErrorCodes {
InvalidThreadNotificationSettings,
ParameterEarlierThanCreation,
ServerNotAvailableInYourLocation = 50095,
ServerNeedsMonetizationEnabledToPerformThisAction = 50097,
TwoFactorAuthenticationIsRequired = 60003,
NoUsersWithDiscordTagExist = 80004,

View File

@@ -36,6 +36,9 @@ export const enum RESTJSONErrorCodes {
UnknownGiftCode = 10038,
UnknownStream = 10049,
UnknownPremiumServerSubscribeCooldown,
UnknownGuildTemplate = 10057,
UnknownDiscoverableServerCategory = 10059,
@@ -48,6 +51,8 @@ export const enum RESTJSONErrorCodes {
UnknownStageInstance,
UnknownGuildMemberVerificationForm,
UnknownGuildWelcomeScreen,
UnknownGuildScheduledEvent,
UnknownGuildScheduledEventUser,
BotsCannotUseThisEndpoint = 20001,
OnlyBotsCanUseThisEndpoint,
@@ -98,6 +103,7 @@ export const enum RESTJSONErrorCodes {
MaximumNumberOfBanFetchesHasBeenReached = 30037,
MaximumNumberOfStickersReached = 30039,
MaximumNumberOfPruneRequestsHasBeenReached,
Unauthorized = 40001,
VerifyYourAccount,
@@ -135,6 +141,7 @@ export const enum RESTJSONErrorCodes {
CannotExecuteActionOnThisChannelType = 50024,
InvalidOAuth2AccessToken,
MissingRequiredOAuth2Scope,
InvalidWebhookToken = 50027,
InvalidRole,
@@ -149,7 +156,9 @@ export const enum RESTJSONErrorCodes {
FileUploadedExceedsMaximumSize = 50045,
InvalidFileUploaded,
CannotSelfRedeemThisGift = 50070,
CannotSelfRedeemThisGift = 50054,
PaymentSourceRequiredToRedeemGift = 50070,
CannotDeleteChannelRequiredForCommunityGuilds = 50074,
@@ -159,6 +168,10 @@ export const enum RESTJSONErrorCodes {
InvalidThreadNotificationSettings,
ParameterEarlierThanCreation,
ServerNotAvailableInYourLocation = 50095,
ServerNeedsMonetizationEnabledToPerformThisAction = 50097,
TwoFactorAuthenticationIsRequired = 60003,
NoUsersWithDiscordTagExist = 80004,