mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
Merge pull request #930 from discordeno/add-missing-json-error-codes
add: missing JSON error codes
This commit is contained in:
@@ -16,6 +16,8 @@ export enum DiscordJsonErrorCodes {
|
||||
UnknownUser,
|
||||
UnknownEmoji,
|
||||
UnknownWebhook,
|
||||
UnknownWebhookService,
|
||||
UnknownSession = 10020,
|
||||
UnknownBan = 10026,
|
||||
UnknownSKU,
|
||||
UnknownStoreListing,
|
||||
@@ -23,20 +25,29 @@ export enum DiscordJsonErrorCodes {
|
||||
UnknownBuild,
|
||||
UnknownLobby,
|
||||
UnknownBranch,
|
||||
UnknownStoreDirectoryLayout,
|
||||
UnknownRedistributable = 10036,
|
||||
UnknownGiftCode = 10038,
|
||||
UnknownGuildTemplate = 10057,
|
||||
UnknownDiscoveryCategory = 10059,
|
||||
UnknownInteraction = 10062,
|
||||
UnknownApplicationCommand = 10063,
|
||||
UnknownApplicationCommandPermissions = 10066,
|
||||
BotsCannotUseThisEndpoint = 20001,
|
||||
OnlyBotsCanUseThisEndpoint,
|
||||
ExplicitContentCannotBeSentToTheDesiredRecipient = 20009,
|
||||
YouAreNotAuthorizedToPerformThisActionOnThisApplication = 20012,
|
||||
ThisActionCannotBePerformedDueToSlowmodeRateLimit = 20016,
|
||||
OnlyTheOwnerOfThisAccountCanPerformThisAction = 20018,
|
||||
ThisMessageCannotBeEditedDueToAnnouncementRateLimits = 20022,
|
||||
TheChannelYouAreWritingHasHitTheWriteRateLimit = 20028,
|
||||
MaximumNumberOfGuildsReached = 30001,
|
||||
MaximumNumberOfFriendsReached,
|
||||
MaximumNumberOfPinsReachedForTheChannel,
|
||||
MaximumNumberOfGuildRolesReached = 30005,
|
||||
MaximumNumberOfRecipientsReached,
|
||||
MaximumNumberOfGuildRolesReached,
|
||||
MaximumNumberOfWebhooksReached = 30007,
|
||||
MaximumNumberOfEmojisReached,
|
||||
MaximumNumberOfReactionsReached = 30010,
|
||||
MaximumNumberOfGuildChannelsReached = 30013,
|
||||
MaximumNumberOfAttachmentsInAMessageReached = 30015,
|
||||
@@ -47,10 +58,13 @@ export enum DiscordJsonErrorCodes {
|
||||
MaximumNumberOfBansFetchesHasBeenReached = 30037,
|
||||
UnauthorizedProvideAValidTokenAndTryAgain = 40001,
|
||||
YouNeedToVerifyYourAccountInOrderToPerformThisAction,
|
||||
YouAreOpeningDirectMessagesTooFast,
|
||||
RequestEntityTooLargeTrySendingSomethingSmallerInSize = 40005,
|
||||
ThisFeatureHasBeenTemporarilyDisabledServerSide,
|
||||
ThisUserBannedFromThisGuild,
|
||||
TargetUserIsNotConnectedToVoice = 40032,
|
||||
ThisMessageHasAlreadyBeenCrossposted = 40033,
|
||||
AnApplicationCommandWithThatNameAlreadyExists = 40041,
|
||||
MissingAccess = 50001,
|
||||
InvalidAccountType,
|
||||
CannotExecuteActionOnADMChannel,
|
||||
@@ -60,9 +74,9 @@ export enum DiscordJsonErrorCodes {
|
||||
CannotSendMessagesToThisUser,
|
||||
CannotSendMessagesInAVoiceChannel,
|
||||
ChannelVerificationLevelIsTooHighForYouToGainAccess,
|
||||
Oauth2ApplicationDoesNotHaveABot,
|
||||
Oauth2ApplicationLimitReached,
|
||||
InvalidOauth2State,
|
||||
OAuth2ApplicationDoesNotHaveABot,
|
||||
OAuth2ApplicationLimitReached,
|
||||
InvalidOAuth2State,
|
||||
YouLackPermissionsToPerformThatAction,
|
||||
InvalidAuthenticationTokenProvided,
|
||||
NoteWasTooLong,
|
||||
@@ -71,13 +85,17 @@ export enum DiscordJsonErrorCodes {
|
||||
InviteCodeWasEitherInvalidOrTaken,
|
||||
CannotExecuteActionOnASystemMessage,
|
||||
CannotExecuteActionOnThisChannelType = 50024,
|
||||
InvalidOauth2AccessTokenProvided,
|
||||
InvalidOAuth2AccessTokenProvided,
|
||||
MissingRequiredOAuth2Scope,
|
||||
InvalidWebhookTokenProvided,
|
||||
InvalidRole,
|
||||
InvalidRecipients = 50033,
|
||||
AMessageProvidedWasTooOldToBulkDelete,
|
||||
InvalidFormBodyOrContentTypeProvided,
|
||||
AnInviteWasAcceptedToAGuildTheApplicationsBotIsNotIn,
|
||||
InvalidApiVersionProvided = 50041,
|
||||
CannotSelfRedeemThisGift = 50054,
|
||||
PaymentSourceRequiredToRedeemGift = 50070,
|
||||
CannotDeleteAChannelRequiredForCommunityGuilds = 50074,
|
||||
InvalidStickerSent = 50081,
|
||||
TriedToPerformAnOperationOnAnArchivedThreadSuchAsEditingAMessageOrAddingAUserToTheThread =
|
||||
@@ -85,6 +103,7 @@ export enum DiscordJsonErrorCodes {
|
||||
InvalidThreadNotificationSettings,
|
||||
BeforeValueIsEarlierThanTheThreadCreationDate,
|
||||
TwoFactorIsRequiredForThisOperation = 60003,
|
||||
NoUsersWithDiscordTagExist = 80004,
|
||||
ReqctionWasBlocked = 90001,
|
||||
ApiResourceIsCurrentlyOverloadedTryAgainALittleLater = 130000,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user