JsonErrorCode
Detailed error codes sent by the Discord API in the JSON error response.
Entries
Unknown account.
Unknown application.
Unknown channel.
Unknown guild.
Unknown integration.
Unknown invite.
Unknown member.
Unknown message.
Unknown permission overwrite.
Unknown provider.
Unknown role.
Unknown token.
Unknown user.
Unknown emoji.
Unknown webhook.
Unknown webhook service.
Unknown session.
Unknown ban.
Unknown SKU.
Unknown store Listing.
Unknown entitlement.
Unknown build.
Unknown lobby.
Unknown branch.
Unknown store directory layout.
Unknown redistributable.
Unknown gift code.
Unknown stream.
Unknown premium server subscribe cooldown.
Unknown guild template.
Unknown discoverable server category.
Unknown sticker.
Unknown interaction.
Unknown application command.
Unknown voice state.
Unknown application command permissions.
Unknown Stage Instance.
Unknown Guild Member Verification Form.
Unknown Guild Welcome Screen.
Unknown Guild Scheduled Event.
Unknown Guild Scheduled Event User.
Unknown Tag.
Bots cannot use this endpoint.
Only bots can use this endpoint.
Explicit content cannot be sent to the desired recipient(s).
You are not authorized to perform this action on this application.
This action cannot be performed due to slow-mode rate limit.
This message cannot be edited due to announcement rate limits.
Under minimum age.
The channel you are writing has hit the write rate limit.
The write action you are performing on the server has hit the write rate limit.
Your Stage topic, server name, server description, or channel names contain words that are not allowed.
Guild premium subscription level too low.
Maximum number of friends reached (1000).
Maximum number of recipients reached (10).
Maximum number of guild roles reached (250).
Maximum number of webhooks reached (15).
Maximum number of reactions reached (20).
Maximum number of group DMs reached (10).
Maximum number of guild channels reached (500).
Maximum number of attachments in a message reached (10).
Maximum number of invites reached (1000).
Maximum number of animated emojis reached.
Maximum number of server members reached.
Maximum number of server categories has been reached (5).
Guild already has a template.
Maximum number of application commands reached.
Maximum number of thread participants has been reached (1000).
Maximum number of daily application command creates has been reached (200).
Maximum number of bans for non-guild members have been exceeded.
Maximum number of bans fetches has been reached.
Maximum number of uncompleted guild scheduled events reached (100).
Maximum number of stickers reached.
Maximum number of prune requests has been reached. Try again later.
Maximum number of guild widget settings updates has been reached. Try again later.
Maximum number of edits to messages older than 1 hour reached. Try again later.
Maximum number of pinned threads in a forum channel has been reached.
Maximum number of tags in a forum channel has been reached.
Bitrate is too high for channel of this type.
Maximum number of premium emojis reached (25).
Maximum number of webhooks per guild reached (1000).
Maximum number of channel permission overwrites reached (1000).
The channels for this guild are too large.
Unauthorized. Provide a valid token and try again.
You need to verify your account in order to perform this action.
Send messages has been temporarily disabled.
Request entity too large. Try sending something smaller in size.
This feature has been temporarily disabled server-side.
The user is banned from this guild.
Connection has been revoked.
Only consumable SKUs can be consumed.
You can only delete sandbox entitlements.
Target user is not connected to voice.
This message has already been crossposted.
An application command with that name already exists.
Application interaction failed to send.
Cannot send a message in a forum channel.
Interaction has already been acknowledged.
Tag names must be unique.
Service resource is being rate limited.
There are no tags available that can be set by non-moderators.
A tag is required to create a forum post in this channel.
An entitlement has already been granted for this resource.
Missing access.
Invalid account type.
Cannot execute action on a DM channel.
Guild widget disabled.
Cannot edit a message authored by another user.
Cannot send an empty message.
Cannot send messages to this user.
Cannot send messages in a non-text channel.
Channel verification level is too high for you to gain access.
OAuth2 application does not have a bot.
OAuth2 application limit reached.
Invalid OAuth2 state.
You lack permissions to perform that action.
Invalid authentication token provided.
Note was too long.
Provided too few or too many messages to delete. Must provide at least 2 and fewer than 100 messages to delete.
Invalid MFA Level.
A message can only be pinned to the channel it was sent in.
Invite code was either invalid or taken.
Cannot execute action on a system message.
Cannot execute action on this channel type.
Invalid OAuth2 access token provided.
Missing required OAuth2 scope.
Invalid webhook token provided.
Invalid role.
Invalid Recipient(s).
A message provided was too old to bulk delete.
Invalid form body (returned for both application/json
and multipart/form-data
bodies), or invalid Content-Type
provided.
An invite was accepted to a guild the application's bot is not in.
Invalid Activity Action.
Invalid API version provided.
File uploaded exceeds the maximum size.
Invalid file uploaded.
Cannot self-redeem this gift.
Invalid Guild.
Invalid SKU.
Invalid request origin.
Invalid message type.
Payment source required to redeem gift.
Cannot modify a system webhook.
Cannot delete a channel required for Community guilds.
Cannot edit stickers within a message.
Invalid sticker sent.
Tried to perform an operation on an archived thread, such as editing a message or adding a user to the thread.
Invalid thread notification settings.
before
value is earlier than the thread creation date.
Community server channels must be text channels.
The entity type of the event is different from the entity you are trying to start the event for.
This server is not available in your location.
This server needs monetization enabled in order to perform this action.
This server needs more boosts to perform this action.
The request body contains invalid JSON.
Owner cannot be pending member.
Ownership cannot be transferred to a bot user.
Failed to resize the asset below the maximum size: 262144.
Cannot mix subscription and non subscription roles for an emoji.
Cannot convert between premium emoji and normal emoji.
Uploaded file not found.
Voice messages do not support additional content.
Voice messages must have a single audio attachment.
Voice messages must have supporting metadata.
Voice messages cannot be edited.
Cannot delete guild subscription integration.
You cannot send voice messages in this channel.
The user account must first be verified.
You do not have permission to send this sticker.
Two factor is required for this operation.
No users with DiscordTag exist.
Reaction was blocked.
Application not yet available. Try again later.
API resource is currently overloaded. Try again a little later.
The Stage is already open.
Cannot reply without permission to read message history.
A thread has already been created for this message.
Thread is locked.
Maximum number of active threads reached.
Maximum number of active announcement threads reached.
Invalid JSON for uploaded Lottie file.
Uploaded Lotties cannot contain rasterized images such as PNG or JPEG.
Sticker maximum framerate exceeded.
Sticker frame count exceeds maximum of 1000 frames.
Lottie animation maximum dimensions exceeded.
Sticker frame rate is either too small or too large.
Sticker animation duration exceeds maximum of 5 seconds.
Cannot update a finished event.
Failed to create stage needed for stage event.
Message was blocked by automatic moderation.
Title was blocked by automatic moderation.
Webhooks posted to forum channels must have a thread_name or thread_id.
Webhooks posted to forum channels cannot have both a thread_name and thread_id.
Webhooks can only create threads in forum channels.
Webhook services cannot be used in forum channels.
Message blocked by harmful links filter.
Cannot enable onboarding, requirements are not met.
Cannot update onboarding while below requirements.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.