enum JsonErrorCodesimport { JsonErrorCodes } from "https://dotland.deno.dev/x/discordeno@17.2.0/plugins/validations/deps.ts"; https://discord.com/developers/docs/topics/opcodes-and-status-codes#json MembersAMessageCanOnlyBePinnedInTheChannelItWasSentIn = 50019AMessageProvidedWasTooOldToBulkDeleteAnApplicationCommandWithThatNameAlreadyExists = 40041AnInviteWasAcceptedToAGuildTheApplicationsBotIsNotInApiResourceIsCurrentlyOverloadedTryAgainALittleLater = 130000ApplicationInteractionFailedToSend = 40043ApplicationNotYetAvailable = 110001AThreadHasAlreadyBeenCreatedForThisMessage = 160004BeforeValueIsEarlierThanTheThreadCreationDateBitrateIsTooHighForChannelOfThisType = 30052BotsCannotUseThisEndpoint = 20001CannotDeleteAChannelRequiredForCommunityGuilds = 50074CannotEditMessageAuthoredByAnotherUserCannotEditStickersWithinAMessage = 50080CannotExecuteActionOnADMChannelCannotExecuteActionOnASystemMessageCannotExecuteActionOnThisChannelType = 50024CannotReplyWithoutPermissionToReadMessageHistory = 160002CannotSelfRedeemThisGift = 50054CannotSendAnEmptyMessageCannotSendMessagesInANonTextChannelCannotSendMessagesToThisUserCannotUpdateAFinishedEvent = 180000ChannelVerificationLevelIsTooHighForYouToGainAccessCommunityServerChannelsMustBeTextChannelsConnectionHasBeenRevoked = 40012ExplicitContentCannotBeSentToTheDesiredRecipient = 20009FailedToCreateStageNeededForStageEvent = 180002FailedToResizeAssetBelowTheMaximumSize = 50138FileUploadedExceedsTheMaximumSize = 50045GeneralErrorGeneral error (such as a malformed request body, amongst other things) GuildAlreadyHasTemplateGuildPremiumSubscriptionLevelTooLow = 20035GuildWidgetDisabledInteractionHasAlreadyBeenAcknowledged = 40060InvalidAccountTypeInvalidActivityAction = 50039InvalidApiVersionProvided = 50041InvalidAuthenticationTokenProvidedInvalidFileUploadedInvalidFormBodyOrContentTypeProvidedInvalid form body (returned for both application/json and multipart/form-data bodies), or invalid Content-Type provided InvalidGuildInvalidJsonForUploadedLottieFile = 170001InvalidMessageType = 50068InvalidMFALevelInvalidOAuth2AccessTokenProvidedInvalidOAuth2StateInvalidRecipients = 50033InvalidRoleInvalidStickerSentInvalidThreadNotificationSettingsInvalidWebhookTokenProvidedInviteCodeWasEitherInvalidOrTakenLottieAnimationMaximumDimensionsExceededMaximumNumberOfActiveAnnouncementThreadsReached = 160007MaximumNumberOfActiveThreadsReached = 160006MaximumNumberOfAnimatedEmojisReached = 30018MaximumNumberOfAttachmentsInAMessageReached = 30015MaximumNumberOfBansFetchesHasBeenReached = 30037MaximumNumberOfBansForNonGuildMembersHaveBeenExceededMaximumNumberOfEditsToMessagesOlderThan1HourReachedTryAgainLater = 30046MaximumNumberOfEmojisReachedMaximumNumberOfFriendsReachedMaximumNumberOfGuildChannelsReached = 30013MaximumNumberOfGuildRolesReachedMaximumNumberOfGuildsReached = 30001MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReachedTryAgainLater = 30042MaximumNumberOfInvitesReachedMaximumNumberOfPinnedThreadsInAForumChannelHasBeenReachedMaximumNumberOfPinsReachedForTheChannelMaximumNumberOfPruneRequestsHasBeenReachedTryAgainLaterMaximumNumberOfReactionsReached = 30010MaximumNumberOfRecipientsReachedMaximumNumberOfServerCategoriesHasBeenReached = 30030MaximumNumberOfServerMembersReachedMaximumNumberOfStickersReached = 30039MaximumNumberOfUncompletedGuildScheduledEventsReached = 30038MaximumNumberOfWebhooksReached = 30007MaximumNumbersOfApplicationCommandsReachedMaxiumNumberOfTagsInAForumChannelHasBeenReachedMaxNumberOfDailyApplicationCommandCreatesHasBeenReachedMaxNumberOfThreadParticipantsHasBeenReachedMessageWasBlockedByAutomaticModeration = 200000MissingAccess = 50001MissingRequiredOAuth2ScopeNoteWasTooLongNoUsersWithDiscordTagExist = 80004OAuth2ApplicationDoesNotHaveABotOAuth2ApplicationLimitReachedOnlyBotsCanUseThisEndpointOnlyTheOwnerOfThisAccountCanPerformThisAction = 20018OwnershipCannotBeTransferredToABotUser = 50132PaymentSourceRequiredToRedeemGift = 50070ProvidedTooFewOrTooManyMessagesToDeleteMustProvideAtLeast2AndFewerThan100MessagesToDeleteReactionWasBlocked = 90001RequestEntityTooLargeTrySendingSomethingSmallerInSizeSendMessagesHasBeenTemporarilyDisabledStickerAnimationDurationExceedsMaximumOf5SecondsStickerFrameCountExceedsMaximumOf1000FramesStickerFrameRateIsEitherTooSmallOrTooLargeStickerMaximumFramerateExceededTargetUserIsNotConnectedToVoice = 40032TheChannelYouAreWritingHasHitTheWriteRateLimit = 20028TheRequestBodyContainsInvalidJSON = 50109TheStageIsAlreadyOpen = 150006TheWriteActionYouArePerformingOnTheServerHasHitTheWriteRateLimitThisActionCannotBePerformedDueToSlowmodeRateLimit = 20016ThisFeatureHasBeenTemporarilyDisabledServerSideThisMessageCannotBeEditedDueToAnnouncementRateLimits = 20022ThisMessageHasAlreadyBeenCrosspostedThisServerIsNotAvailableInYourLocation = 50095ThisServerNeedsMonetizationEnabledInOrderToPerformThisAction = 50097ThisServerNeedsMoreBoostsToPerformThisAction = 50101ThisUserBannedFromThisGuildThreadIsLocked = 160005TitleWasBlockedByAutomaticModerationTriedToPerformAnOperationOnAnArchivedThreadSuchAsEditingAMessageOrAddingAUserToTheThread = 50083TwoFactorIsRequiredForThisOperation = 60003UnauthorizedProvideAValidTokenAndTryAgain = 40001UnderMinimumAge = 20024UnknownAccount = 10001UnknownApplicationUnknownApplicationCommand = 10063UnknownApplicationCommandPermissionsUnknownBan = 10026UnknownBranchUnknownBuildUnknownChannelUnknownDiscoveryCategory = 10059UnknownEmojiUnknownEntitlementUnknownGiftCode = 10038UnknownGuildUnknownGuildMemberVerificationFormUnknownGuildScheduledEventUnknownGuildScheduledEventUserUnknownGuildTemplate = 10057UnknownGuildWelcomeScreenUnknownIntegrationUnknownInteraction = 10062UnknownInviteUnknownLobbyUnknownMemberUnknownMessageUnknownPermissionOverwriteUnknownPremiumServerSubscribeCooldownUnknownProviderUnknownRedistributable = 10036UnknownRoleUnknownSession = 10020UnknownSKUUnknownStageInstanceUnknownStickerUnknownStoreDirectoryLayoutUnknownStoreListingUnknownStream = 10049UnknownTag = 10087UnknownTokenUnknownUserUnknownVoiceState = 10065UnknownWebhookUnknownWebhookServiceUploadedFileNotFound = 50146UploadedLottiesCannotContainRasterizedImagesSuchAsPngOrJpegWebhooksCanOnlyCreateThreadsInForumChannels = 220003YouAreNotAuthorizedToPerformThisActionOnThisApplication = 20012YouAreOpeningDirectMessagesTooFastYouLackPermissionsToPerformThatActionYouNeedToVerifyYourAccountInOrderToPerformThisActionYourStageTopicOrServerNameOrServerDescriptionOrChannelNamesContainsWordsThatAreNotAllowedForPublicStages = 20031