Enum DiscordHttpErrorCode
Error codes returned by the discord HTTP API. https://github.com/hammerandchisel/discord-api-docs/blob/master/docs/topics/RESPONSE_CODES.md#json-error-response
Namespace: Discore.Http
Assembly: Discore.dll
Syntax
public enum DiscordHttpErrorCode
Fields
| Name | Description |
|---|---|
| AccountmentRateLimited | This message cannot be edited due to announcement rate limits. |
| BotsNotAllowed | Bots cannot use this endpoint. |
| CannotDeleteCommunityRequiredChannel | Cannot delete a channel required for Community guilds. |
| CannotMessageUser | Cannot send messages to this user. |
| CannotMessageVoiceChannel | Cannot send message in a voice channel. |
| ChannelRateLimited | The channel you are writing has hit the write rate limit. |
| ChannelVerificationError | Channel verification level is too high. |
| DisabledFeature | This feature has been temporarily disabled server-side. |
| DisallowedWords | Your Stage topic, server name, server description, or channel names contain words that are not allowed. |
| DiscordTagNotFound | No users with DiscordTag exist. |
| DuplicateApplicationCommand | An application command with that name already exists. |
| ExplicitContentCannotBeSent | Explicit content cannot be sent to the desired recipient(s). |
| GuildAlreadyHasTemplate | |
| InvalidAccessToken | Invalid OAuth2 access token provided. |
| InvalidAccountType | |
| InvalidAuthenticationToken | |
| InvalidBulkDelete | Provided too few or too many messages to delete. Must provide at least 2 and fewer than 100 messages to delete. |
| InvalidBulkDeleteMessageAge | A message provided was too old to bulk delete. |
| InvalidChannelTarget | Cannot execute action on this channel type. |
| InvalidDMChannelAction | Cannot execute action on a DM channel. |
| InvalidFormBody | |
| InvalidInviteCode | Invite code was either invalid or taken. |
| InvalidMessageAuthorEdit | Cannot edit a message created by a different user. |
| InvalidMessagePin | A message can only be pinned to the channel it was created in. |
| InvalidMessageTarget | Cannot execute action on a system message. |
| InvalidOAuthState | |
| InvalidRecipients | |
| InvalidRole | |
| InvalidSticker | Invalid sticker sent. |
| InvalidThreadBefore | 'before' value is earlier than the thread creation date. |
| InvalidThreadNotificationSettings | |
| InvalidWebhookToken | Invalid webhook token provided. |
| InviteAcceptedToInvalidGuild | An invite was accepted to a guild the application's bot is not in. |
| MaximumActiveAnnouncementThreadsReached | |
| MaximumActiveThreadsReached | |
| MaximumAnimatedEmojisReached | |
| MaximumAttachmentsReached | Maximum message attachments: 10 |
| MaximumBanFetchesReached | |
| MaximumBansExceeded | Maximum number of bans for non-guild members have been exceeded. |
| MaximumEmojisReached | |
| MaximumGuildChannelsReached | Maximum guild channels: 500 |
| MaximumGuildRolesReached | Maximum guild roles: 250 |
| MaximumGuildsReached | Maximum guilds: 100 |
| MaximumInvitesReached | Maximum invites: 1000 |
| MaximumPinsReached | Maximum pinned messages: 50 |
| MaximumReactionsReached | Maximum reactions: 20 |
| MaximumRecipientsReached | Maximum recipients: 10 |
| MaximumServerMembersReached | |
| MaximumThreadParticipantsReached | |
| MaximumWebhooksReached | Maximum webhooks: 10 |
| MessageAlreadyCrossposted | This message has already been crossposted. |
| MessageEmpty | Cannot send an empty message. |
| MissingAccess | |
| MissingOAuth2Scope | Missing required OAuth2 scope. |
| MissingPermissions | |
| None | An unknown error occured, this most likely signifies that an internal error occured on Discord's end. |
| NoteTooLong | Note is too long. |
| OAuth2AppLimitReached | OAuth2 application limit reached. |
| OAuth2AppMissingBot | OAuth2 application does not have a bot. |
| OnlyBotsAllowed | Only bots can use this endpoint. |
| OpeningDMsTooFast | You are opening direct messages too fast. |
| OwnershipRequired | Only the owner of this account can perform this action. |
| PremiumSubscriptionTooLow | Guild premium subscription level too low. |
| ReactionBlocked | |
| RequestEntityTooLarge | Request entity too large. Try sending something smaller in size. |
| ResourceOverloaded | API resource is currently overloaded. Try again a little later. |
| SlowmodeRateLimited | This action cannot be performed due to slowmode rate limit. |
| StageAlreadyOpen | |
| TargetNotInVoice | Target user is not connected to voice. |
| ThreadAlreadyCreated | A thread has already been created for this message. |
| ThreadArchived | Tried to perform an operation on an archived thread, such as editing a message or adding a user to the thread. |
| ThreadLocked | |
| TooManyRequests | The request failed because the application was rate limited. |
| TwoFactorRequired | |
| Unauthorized | Unauthorized. Provide a valid token and try again. |
| UnauthorizedForApplication | You are not authorized to perform this action on this application. |
| UnknownAccount | |
| UnknownApplication | |
| UnknownApplicationCommand | |
| UnknownApplicationCommandPermissions | |
| UnknownBan | |
| UnknownBranch | |
| UnknownBuild | |
| UnknownChannel | |
| UnknownEmoji | |
| UnknownEntitlement | |
| UnknownGiftCode | |
| UnknownGuild | |
| UnknownGuildTemplate | |
| UnknownIntegration | |
| UnknownInteraction | |
| UnknownInvite | |
| UnknownLobby | |
| UnknownMember | |
| UnknownMessage | |
| UnknownOverwrite | |
| UnknownProvider | |
| UnknownRedistributable | |
| UnknownRole | |
| UnknownSession | |
| UnknownSku | |
| UnknownStageInstance | |
| UnknownStoreDirectoryLayout | |
| UnknownStoreListing | |
| UnknownToken | |
| UnknownUser | |
| UnknownWebhook | |
| UnknownWebhookService | |
| UserBanned | The user is banned from this guild. |
| VerifiedAccountRequired | You need to verify your account in order to perform this action. |
| WidgetDisabled |