JsonErrorCode

Detailed error codes sent by the Discord API in the JSON error response.

JSON Error Codes

Entries

Link copied to clipboard

Undocumented error.

Link copied to clipboard

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

Link copied to clipboard

Unknown account.

Link copied to clipboard

Unknown application.

Link copied to clipboard

Unknown channel.

Link copied to clipboard

Unknown guild.

Link copied to clipboard

Unknown integration.

Link copied to clipboard

Unknown invite.

Link copied to clipboard

Unknown member.

Link copied to clipboard

Unknown message.

Link copied to clipboard

Unknown permission overwrite.

Link copied to clipboard

Unknown provider.

Link copied to clipboard

Unknown role.

Link copied to clipboard

Unknown token.

Link copied to clipboard

Unknown user.

Link copied to clipboard

Unknown emoji.

Link copied to clipboard

Unknown webhook.

Link copied to clipboard

Unknown webhook service.

Link copied to clipboard

Unknown session.

Link copied to clipboard

Unknown ban.

Link copied to clipboard

Unknown SKU.

Link copied to clipboard

Unknown store Listing.

Link copied to clipboard

Unknown entitlement.

Link copied to clipboard

Unknown build.

Link copied to clipboard

Unknown lobby.

Link copied to clipboard

Unknown branch.

Link copied to clipboard

Unknown store directory layout.

Link copied to clipboard

Unknown redistributable.

Link copied to clipboard

Unknown gift code.

Link copied to clipboard

Unknown stream.

Link copied to clipboard

Unknown premium server subscribe cooldown.

Link copied to clipboard

Unknown guild template.

Link copied to clipboard

Unknown discoverable server category.

Link copied to clipboard

Unknown sticker.

Link copied to clipboard

Unknown interaction.

Link copied to clipboard

Unknown application command.

Link copied to clipboard

Unknown voice state.

Link copied to clipboard

Unknown application command permissions.

Link copied to clipboard

Unknown Stage Instance.

Link copied to clipboard

Unknown Guild Member Verification Form.

Link copied to clipboard

Unknown Guild Welcome Screen.

Link copied to clipboard

Unknown Guild Scheduled Event.

Link copied to clipboard

Unknown Guild Scheduled Event User.

Link copied to clipboard

Unknown Tag.

Link copied to clipboard

Bots cannot use this endpoint.

Link copied to clipboard

Only bots can use this endpoint.

Link copied to clipboard

Explicit content cannot be sent to the desired recipient(s).

Link copied to clipboard

You are not authorized to perform this action on this application.

Link copied to clipboard

This action cannot be performed due to slow-mode rate limit.

Link copied to clipboard

Only the owner of this account can perform this action.

Link copied to clipboard

This message cannot be edited due to announcement rate limits.

Link copied to clipboard

Under minimum age.

Link copied to clipboard

The channel you are writing has hit the write rate limit.

Link copied to clipboard

The write action you are performing on the server has hit the write rate limit.

Link copied to clipboard

Your Stage topic, server name, server description, or channel names contain words that are not allowed.

Link copied to clipboard

Guild premium subscription level too low.

Link copied to clipboard

Maximum number of guilds reached (100).

Link copied to clipboard

Maximum number of friends reached (1000).

Link copied to clipboard

Maximum number of pins reached for the channel (50).

Link copied to clipboard

Maximum number of recipients reached (10).

Link copied to clipboard

Maximum number of guild roles reached (250).

Link copied to clipboard

Maximum number of webhooks reached (15).

Link copied to clipboard

Maximum number of emojis reached.

Link copied to clipboard

Maximum number of reactions reached (20).

Link copied to clipboard

Maximum number of group DMs reached (10).

Link copied to clipboard

Maximum number of guild channels reached (500).

Link copied to clipboard

Maximum number of attachments in a message reached (10).

Link copied to clipboard

Maximum number of invites reached (1000).

Link copied to clipboard

Maximum number of animated emojis reached.

Link copied to clipboard

Maximum number of server members reached.

Link copied to clipboard

Maximum number of server categories has been reached (5).

Link copied to clipboard

Guild already has a template.

Link copied to clipboard

Maximum number of application commands reached.

Link copied to clipboard

Maximum number of thread participants has been reached (1000).

Link copied to clipboard

Maximum number of daily application command creates has been reached (200).

Link copied to clipboard

Maximum number of bans for non-guild members have been exceeded.

Link copied to clipboard

Maximum number of bans fetches has been reached.

Link copied to clipboard

Maximum number of uncompleted guild scheduled events reached (100).

Link copied to clipboard

Maximum number of stickers reached.

Link copied to clipboard

Maximum number of prune requests has been reached. Try again later.

Link copied to clipboard

Maximum number of guild widget settings updates has been reached. Try again later.

Link copied to clipboard

Maximum number of edits to messages older than 1 hour reached. Try again later.

Link copied to clipboard

Maximum number of pinned threads in a forum channel has been reached.

Link copied to clipboard

Maximum number of tags in a forum channel has been reached.

Link copied to clipboard

Bitrate is too high for channel of this type.

Link copied to clipboard

Maximum number of premium emojis reached (25).

Link copied to clipboard

Maximum number of webhooks per guild reached (1000).

Link copied to clipboard

Maximum number of channel permission overwrites reached (1000).

Link copied to clipboard

The channels for this guild are too large.

Link copied to clipboard

Unauthorized. Provide a valid token and try again.

Link copied to clipboard

You need to verify your account in order to perform this action.

Link copied to clipboard

You are opening direct messages too fast.

Link copied to clipboard

Send messages has been temporarily disabled.

Link copied to clipboard

Request entity too large. Try sending something smaller in size.

Link copied to clipboard

This feature has been temporarily disabled server-side.

Link copied to clipboard

The user is banned from this guild.

Link copied to clipboard

Connection has been revoked.

Link copied to clipboard

Only consumable SKUs can be consumed.

Link copied to clipboard

You can only delete sandbox entitlements.

Link copied to clipboard

Target user is not connected to voice.

Link copied to clipboard

This message has already been crossposted.

Link copied to clipboard

An application command with that name already exists.

Link copied to clipboard

Application interaction failed to send.

Link copied to clipboard

Cannot send a message in a forum channel.

Link copied to clipboard

Interaction has already been acknowledged.

Link copied to clipboard

Tag names must be unique.

Link copied to clipboard

Service resource is being rate limited.

Link copied to clipboard

There are no tags available that can be set by non-moderators.

Link copied to clipboard

A tag is required to create a forum post in this channel.

Link copied to clipboard

An entitlement has already been granted for this resource.

Link copied to clipboard

Missing access.

Link copied to clipboard

Invalid account type.

Link copied to clipboard

Cannot execute action on a DM channel.

Link copied to clipboard

Guild widget disabled.

Link copied to clipboard

Cannot edit a message authored by another user.

Link copied to clipboard

Cannot send an empty message.

Link copied to clipboard

Cannot send messages to this user.

Link copied to clipboard

Cannot send messages in a non-text channel.

Link copied to clipboard

Channel verification level is too high for you to gain access.

Link copied to clipboard

OAuth2 application does not have a bot.

Link copied to clipboard

OAuth2 application limit reached.

Link copied to clipboard

Invalid OAuth2 state.

Link copied to clipboard

You lack permissions to perform that action.

Link copied to clipboard

Invalid authentication token provided.

Link copied to clipboard

Note was too long.

Link copied to clipboard

Provided too few or too many messages to delete. Must provide at least 2 and fewer than 100 messages to delete.

Link copied to clipboard

Invalid MFA Level.

Link copied to clipboard

A message can only be pinned to the channel it was sent in.

Link copied to clipboard

Invite code was either invalid or taken.

Link copied to clipboard

Cannot execute action on a system message.

Link copied to clipboard

Cannot execute action on this channel type.

Link copied to clipboard

Invalid OAuth2 access token provided.

Link copied to clipboard

Missing required OAuth2 scope.

Link copied to clipboard

Invalid webhook token provided.

Link copied to clipboard

Invalid role.

Link copied to clipboard

Invalid Recipient(s).

Link copied to clipboard

A message provided was too old to bulk delete.

Link copied to clipboard

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

Link copied to clipboard

An invite was accepted to a guild the application's bot is not in.

Link copied to clipboard

Invalid Activity Action.

Link copied to clipboard

Invalid API version provided.

Link copied to clipboard

File uploaded exceeds the maximum size.

Link copied to clipboard

Invalid file uploaded.

Link copied to clipboard

Cannot self-redeem this gift.

Link copied to clipboard

Invalid Guild.

Link copied to clipboard

Invalid SKU.

Link copied to clipboard

Invalid request origin.

Link copied to clipboard

Invalid message type.

Link copied to clipboard

Payment source required to redeem gift.

Link copied to clipboard

Cannot modify a system webhook.

Link copied to clipboard

Cannot delete a channel required for Community guilds.

Link copied to clipboard

Cannot edit stickers within a message.

Link copied to clipboard

Invalid sticker sent.

Link copied to clipboard

Tried to perform an operation on an archived thread, such as editing a message or adding a user to the thread.

Link copied to clipboard

Invalid thread notification settings.

Link copied to clipboard

before value is earlier than the thread creation date.

Link copied to clipboard

Community server channels must be text channels.

Link copied to clipboard

The entity type of the event is different from the entity you are trying to start the event for.

Link copied to clipboard

This server is not available in your location.

Link copied to clipboard

This server needs monetization enabled in order to perform this action.

Link copied to clipboard

This server needs more boosts to perform this action.

Link copied to clipboard

The request body contains invalid JSON.

Link copied to clipboard

Owner cannot be pending member.

Link copied to clipboard

Ownership cannot be transferred to a bot user.

Link copied to clipboard

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.

Link copied to clipboard

Uploaded file not found.

Voice messages do not support additional content.

Voice messages must have a single audio attachment.

Link copied to clipboard

Voice messages must have supporting metadata.

Link copied to clipboard

Voice messages cannot be edited.

Link copied to clipboard

Cannot delete guild subscription integration.

Link copied to clipboard

You cannot send voice messages in this channel.

Link copied to clipboard

The user account must first be verified.

Link copied to clipboard

You do not have permission to send this sticker.

Link copied to clipboard

Two factor is required for this operation.

Link copied to clipboard

No users with DiscordTag exist.

Link copied to clipboard

Reaction was blocked.

Link copied to clipboard

Application not yet available. Try again later.

Link copied to clipboard

API resource is currently overloaded. Try again a little later.

Link copied to clipboard

The Stage is already open.

Cannot reply without permission to read message history.

Link copied to clipboard

A thread has already been created for this message.

Link copied to clipboard

Thread is locked.

Link copied to clipboard

Maximum number of active threads reached.

Link copied to clipboard

Maximum number of active announcement threads reached.

Link copied to clipboard

Invalid JSON for uploaded Lottie file.

Link copied to clipboard

Uploaded Lotties cannot contain rasterized images such as PNG or JPEG.

Link copied to clipboard

Sticker maximum framerate exceeded.

Link copied to clipboard

Sticker frame count exceeds maximum of 1000 frames.

Link copied to clipboard

Lottie animation maximum dimensions exceeded.

Link copied to clipboard

Sticker frame rate is either too small or too large.

Link copied to clipboard

Sticker animation duration exceeds maximum of 5 seconds.

Link copied to clipboard

Cannot update a finished event.

Link copied to clipboard

Failed to create stage needed for stage event.

Link copied to clipboard

Message was blocked by automatic moderation.

Link copied to clipboard

Title was blocked by automatic moderation.

Link copied to clipboard

Webhooks posted to forum channels must have a thread_name or thread_id.

Link copied to clipboard

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.

Link copied to clipboard

Message blocked by harmful links filter.

Link copied to clipboard

Cannot enable onboarding, requirements are not met.

Link copied to clipboard

Cannot update onboarding while below requirements.

Properties

Link copied to clipboard
val code: Int
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.