Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
enum JsonErrorCodes
import { JsonErrorCodes } from "https://deno.land/x/discordeno@17.2.0/template/beginner/deps.ts";

Members

AMessageCanOnlyBePinnedInTheChannelItWasSentIn = 50019
AMessageProvidedWasTooOldToBulkDelete
AnApplicationCommandWithThatNameAlreadyExists = 40041
AnInviteWasAcceptedToAGuildTheApplicationsBotIsNotIn
ApiResourceIsCurrentlyOverloadedTryAgainALittleLater = 130000
ApplicationInteractionFailedToSend = 40043
ApplicationNotYetAvailable = 110001
AThreadHasAlreadyBeenCreatedForThisMessage = 160004
BeforeValueIsEarlierThanTheThreadCreationDate
BitrateIsTooHighForChannelOfThisType = 30052
BotsCannotUseThisEndpoint = 20001
CannotDeleteAChannelRequiredForCommunityGuilds = 50074
CannotEditMessageAuthoredByAnotherUser
CannotEditStickersWithinAMessage = 50080
CannotExecuteActionOnADMChannel
CannotExecuteActionOnASystemMessage
CannotExecuteActionOnThisChannelType = 50024
CannotReplyWithoutPermissionToReadMessageHistory = 160002
CannotSelfRedeemThisGift = 50054
CannotSendAnEmptyMessage
CannotSendMessagesInANonTextChannel
CannotSendMessagesToThisUser
CannotUpdateAFinishedEvent = 180000
ChannelVerificationLevelIsTooHighForYouToGainAccess
CommunityServerChannelsMustBeTextChannels
ConnectionHasBeenRevoked = 40012
ExplicitContentCannotBeSentToTheDesiredRecipient = 20009
FailedToCreateStageNeededForStageEvent = 180002
FailedToResizeAssetBelowTheMaximumSize = 50138
FileUploadedExceedsTheMaximumSize = 50045
GeneralError

General error (such as a malformed request body, amongst other things)

GuildAlreadyHasTemplate
GuildPremiumSubscriptionLevelTooLow = 20035
GuildWidgetDisabled
InteractionHasAlreadyBeenAcknowledged = 40060
InvalidAccountType
InvalidApiVersionProvided = 50041
InvalidAuthenticationTokenProvided
InvalidFileUploaded
InvalidFormBodyOrContentTypeProvided

Invalid form body (returned for both application/json and multipart/form-data bodies), or invalid Content-Type provided

InvalidGuild
InvalidJsonForUploadedLottieFile = 170001
InvalidMessageType = 50068
InvalidMFALevel
InvalidOAuth2AccessTokenProvided
InvalidOAuth2State
InvalidRecipients = 50033
InvalidRole
InvalidStickerSent
InvalidThreadNotificationSettings
InvalidWebhookTokenProvided
InviteCodeWasEitherInvalidOrTaken
LottieAnimationMaximumDimensionsExceeded
MaximumNumberOfActiveAnnouncementThreadsReached = 160007
MaximumNumberOfActiveThreadsReached = 160006
MaximumNumberOfAnimatedEmojisReached = 30018
MaximumNumberOfAttachmentsInAMessageReached = 30015
MaximumNumberOfBansFetchesHasBeenReached = 30037
MaximumNumberOfBansForNonGuildMembersHaveBeenExceeded
MaximumNumberOfEditsToMessagesOlderThan1HourReachedTryAgainLater = 30046
MaximumNumberOfEmojisReached
MaximumNumberOfFriendsReached
MaximumNumberOfGuildChannelsReached = 30013
MaximumNumberOfGuildRolesReached
MaximumNumberOfGuildsReached = 30001
MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReachedTryAgainLater = 30042
MaximumNumberOfInvitesReached
MaximumNumberOfPinnedThreadsInAForumChannelHasBeenReached
MaximumNumberOfPinsReachedForTheChannel
MaximumNumberOfPruneRequestsHasBeenReachedTryAgainLater
MaximumNumberOfReactionsReached = 30010
MaximumNumberOfRecipientsReached
MaximumNumberOfServerCategoriesHasBeenReached = 30030
MaximumNumberOfServerMembersReached
MaximumNumberOfStickersReached = 30039
MaximumNumberOfUncompletedGuildScheduledEventsReached = 30038
MaximumNumberOfWebhooksReached = 30007
MaximumNumbersOfApplicationCommandsReached
MaxiumNumberOfTagsInAForumChannelHasBeenReached
MaxNumberOfDailyApplicationCommandCreatesHasBeenReached
MaxNumberOfThreadParticipantsHasBeenReached
MessageWasBlockedByAutomaticModeration = 200000
MissingAccess = 50001
MissingRequiredOAuth2Scope
NoteWasTooLong
NoUsersWithDiscordTagExist = 80004
OAuth2ApplicationDoesNotHaveABot
OAuth2ApplicationLimitReached
OnlyBotsCanUseThisEndpoint
OnlyTheOwnerOfThisAccountCanPerformThisAction = 20018
OwnershipCannotBeTransferredToABotUser = 50132
PaymentSourceRequiredToRedeemGift = 50070
ProvidedTooFewOrTooManyMessagesToDeleteMustProvideAtLeast2AndFewerThan100MessagesToDelete
ReactionWasBlocked = 90001
RequestEntityTooLargeTrySendingSomethingSmallerInSize
SendMessagesHasBeenTemporarilyDisabled
StickerAnimationDurationExceedsMaximumOf5Seconds
StickerFrameCountExceedsMaximumOf1000Frames
StickerFrameRateIsEitherTooSmallOrTooLarge
StickerMaximumFramerateExceeded
TargetUserIsNotConnectedToVoice = 40032
TheChannelYouAreWritingHasHitTheWriteRateLimit = 20028
TheRequestBodyContainsInvalidJSON = 50109
TheStageIsAlreadyOpen = 150006
TheWriteActionYouArePerformingOnTheServerHasHitTheWriteRateLimit
ThisActionCannotBePerformedDueToSlowmodeRateLimit = 20016
ThisFeatureHasBeenTemporarilyDisabledServerSide
ThisMessageCannotBeEditedDueToAnnouncementRateLimits = 20022
ThisMessageHasAlreadyBeenCrossposted
ThisServerIsNotAvailableInYourLocation = 50095
ThisServerNeedsMonetizationEnabledInOrderToPerformThisAction = 50097
ThisServerNeedsMoreBoostsToPerformThisAction = 50101
ThisUserBannedFromThisGuild
ThreadIsLocked = 160005
TitleWasBlockedByAutomaticModeration
TriedToPerformAnOperationOnAnArchivedThreadSuchAsEditingAMessageOrAddingAUserToTheThread = 50083
TwoFactorIsRequiredForThisOperation = 60003
UnauthorizedProvideAValidTokenAndTryAgain = 40001
UnderMinimumAge = 20024
UnknownAccount = 10001
UnknownApplication
UnknownApplicationCommand = 10063
UnknownApplicationCommandPermissions
UnknownBan = 10026
UnknownBranch
UnknownBuild
UnknownChannel
UnknownDiscoveryCategory = 10059
UnknownEmoji
UnknownEntitlement
UnknownGiftCode = 10038
UnknownGuild
UnknownGuildMemberVerificationForm
UnknownGuildScheduledEvent
UnknownGuildScheduledEventUser
UnknownGuildTemplate = 10057
UnknownGuildWelcomeScreen
UnknownIntegration
UnknownInteraction = 10062
UnknownInvite
UnknownLobby
UnknownMember
UnknownMessage
UnknownPermissionOverwrite
UnknownPremiumServerSubscribeCooldown
UnknownProvider
UnknownRedistributable = 10036
UnknownRole
UnknownSession = 10020
UnknownSKU
UnknownStageInstance
UnknownSticker
UnknownStoreDirectoryLayout
UnknownStoreListing
UnknownStream = 10049
UnknownTag = 10087
UnknownToken
UnknownUser
UnknownVoiceState = 10065
UnknownWebhook
UnknownWebhookService
UploadedFileNotFound = 50146
UploadedLottiesCannotContainRasterizedImagesSuchAsPngOrJpeg
WebhooksCanOnlyCreateThreadsInForumChannels = 220003
YouAreNotAuthorizedToPerformThisActionOnThisApplication = 20012
YouAreOpeningDirectMessagesTooFast
YouLackPermissionsToPerformThatAction
YouNeedToVerifyYourAccountInOrderToPerformThisAction
YourStageTopicOrServerNameOrServerDescriptionOrChannelNamesContainsWordsThatAreNotAllowedForPublicStages = 20031