EDA.Error (EDA v0.3.0)

Copy Markdown View Source

Discord JSON error codes with bidirectional lookup and named constants.

Discord API responses include numeric error codes that indicate why a request failed. This module provides O(1) lookup in both directions (code → name and name → code) via compiled maps, plus named constants for autocompletion and pattern matching.

Categories

RangeCategory
0General
10xxxUnknown Resource
20xxxAction Prohibition
30xxxMaximum Limits
40xxxAuthorization / Rate Limits
50xxxInvalid State / Permissions
60xxxTwo-Factor Authentication
80xxxUser Lookup
90xxxReactions
110xxxApplication Availability
130xxxAPI Overload
150xxxStage
160xxxThreads
170xxxSticker Validation
180xxxScheduled Events
200xxxAuto Moderation
220xxxWebhook Forum
240xxxHarmful Links
340xxx–350xxxOnboarding
400xxxFile Uploads
500xxxBans
520xxxPolls
530xxxProvisional Accounts / OIDC

Examples

iex> EDA.Error.name(50_013)
:missing_permissions

iex> EDA.Error.code(:missing_permissions)
50_013

iex> EDA.Error.message(50_013)
"You lack permissions to perform that action"

iex> EDA.Error.known?(99_999)
false

iex> EDA.Error.missing_permissions()
50_013

Summary

Functions

Returns all known error codes as a map of integer() => {atom(), String.t()}.

Announcement rate limit (20022).

API resource currently overloaded (130000).

Application command name already exists (40041).

Application interaction failed to send (40043).

Application not yet available (110001).

before value earlier than thread creation date (50085).

Bitrate too high for channel type (30052).

Bots cannot use this endpoint (20001).

Cannot convert between premium and normal emoji (50145).

Cannot delete community-required channel (50074).

Cannot delete guild subscription integration (50163).

Cannot edit another user's message (50005).

Cannot edit a poll message (520003).

Cannot edit stickers in a message (50080).

Cannot enable onboarding, requirements not met (350000).

Cannot execute on this channel type (50024).

Cannot execute action on a DM channel (50003).

Cannot execute on system message (50021).

Cannot expire a non-poll message (520006).

Cannot mix subscription and non-subscription roles for emoji (50144).

Cannot modify a system webhook (50073).

Cannot reply without read message history permission (160002).

Cannot self-redeem gift (50054).

Cannot send an empty message (50006).

Cannot send a message in a forum channel (40058).

Cannot send messages in a non-text channel (50008).

Cannot send messages to this user (50007).

Cannot send voice messages in this channel (50173).

Cannot transfer ownership to bot (50132).

Cannot update a finished event (180000).

Cannot update onboarding while below requirements (350001).

User cannot use burst reactions (90002).

Cannot use emoji included with poll (520004).

Channel verification level too high (50009).

Channel write rate limit (20028).

Cloudflare blocking request (40333).

Returns the integer error code for the given atom name, or nil if unknown.

Community channels must be text channels (50086).

Connection has been revoked (40012).

Disallowed words in content (20031).

DM rate limit (40003).

Entitlement already granted (40074).

Event entity type mismatch (50091).

Explicit content blocked (20009).

Failed to ban users (500000).

Failed to create stage for stage event (180002).

Failed to generate unique username (530006).

Failed to resize asset (50138).

Feature temporarily disabled server-side (40006).

File duration exceeds maximum (50124).

File exceeds maximum size (50045).

File uploads limited for this guild (400001).

General error (0).

Guild already has a template (30031).

Guild channels too large (30061).

Guild premium subscription level too low (20035).

Guild widget disabled (50004).

ID token audience mismatch (530003).

ID token JWT expired (530001).

ID token issuer mismatch (530002).

ID token too old (530004).

Interaction already acknowledged (40060).

Invalid account type (50002).

Invalid Activity Action (50039).

Invalid API version (50041).

Invalid authentication token (50014).

Invalid bulk delete message count (50016).

Invalid channel type for poll creation (520002).

Invalid client secret (530007).

Invalid emoji (50151).

Invalid file (50110).

Invalid file duration (50192).

Invalid file type (50123).

Invalid file uploaded (50046).

Invalid form body or Content-Type (50035).

Invalid Guild (50055).

Invalid JSON in request body (50109).

Invalid Lottie JSON (170001).

Invalid message type (50068).

Invalid MFA level (50017).

Invalid OAuth2 access token (50025).

Invalid OAuth2 state (50012).

Invalid or taken invite code (50020).

Invalid recipient(s) (50033).

Invalid request origin (50067).

Invalid role (50028).

Invalid SKU (50057).

Invalid sticker sent (50081).

Invalid thread notification settings (50084).

Invalid webhook token (50027).

Invite accepted without bot in guild (50036).

Returns true if the given integer error code is a known Discord error code.

Lottie maximum dimensions exceeded (170005).

Lottie cannot contain rasterized images (170002).

Maximum active announcement threads reached (160007).

Maximum active threads reached (160006).

Maximum number of animated emojis reached (30018).

Maximum number of application commands reached (30032).

Maximum number of attachments reached (30015).

Maximum ban fetches reached (30037).

Maximum channel permission overwrites reached (30060).

Maximum daily application command creates reached (30034).

Maximum number of emojis reached (30008).

Maximum follow-up messages reached (40094).

Maximum forum tags reached (30048).

Maximum number of friends reached (30002).

Maximum number of group DMs reached (30011).

Maximum number of guild channels reached (30013).

Maximum webhooks per guild reached (30058).

Maximum guild widget settings updates reached (30042).

Maximum number of guilds reached (30001).

Maximum number of invites reached (30016).

Maximum non-member bans exceeded (30035).

Maximum old message edits reached (30046).

Maximum pinned threads in forum reached (30047).

Maximum number of pins reached (30003).

Maximum premium emojis reached (30056).

Maximum prune requests reached (30040).

Maximum number of reactions reached (30010).

Maximum number of recipients reached (30004).

Maximum number of guild roles reached (30005).

Maximum number of server categories reached (30030).

Maximum number of server members reached (30019).

Maximum soundboard sounds reached (30045).

Maximum number of stickers reached (30039).

Maximum number of thread participants reached (30033).

Maximum uncompleted guild scheduled events reached (30038).

Maximum number of webhooks reached (30007).

Returns the human-readable message for the given integer error code, or nil if unknown.

Message already crossposted (40033).

Message blocked by automatic moderation (200000).

Message blocked by harmful links filter (240000).

Message too old to bulk delete (50034).

Missing access (50001).

Missing required OAuth2 scope (50026).

Missing permissions (50013).

Monetization required (50097).

More boosts required (50101).

Returns the atom name for the given integer error code, or nil if unknown.

No non-moderator tags available (40066).

No permission to send sticker (50600).

No permission to use provisional accounts (530000).

No users with DiscordTag exist (80004).

Not authorized for application (20012).

Note too long (50015).

OAuth2 application limit reached (50011).

OAuth2 application does not have a bot (50010).

Only bots can use this endpoint (20002).

Only consumable SKUs can be consumed (40018).

Only the owner can perform this action (20018).

Only sandbox entitlements can be deleted (40019).

Operation on archived thread (50083).

Owner cannot be pending member (50131).

Payment source required to redeem gift (50070).

Message pinned to wrong channel (50019).

Poll expired (520001).

Poll voting blocked (520000).

Reaction was blocked (90001).

Request entity too large (40005).

Send messages temporarily disabled (40004).

Server not available in location (50095).

Server write rate limit (20029).

Service resource is being rate limited (40062).

Slowmode rate limit (20016).

Stage is already open (150006).

Sticker frame rate invalid (170006).

Sticker animation duration exceeds maximum (170007).

Sticker frame count exceeds maximum (170004).

Sticker maximum framerate exceeded (170003).

Tag names must be unique (40061).

Tag required for forum post (40067).

Target user not connected to voice (40032).

Thread already created for this message (160004).

Thread is locked (160005).

Title blocked by automatic moderation (200001).

Two-factor authentication required (60003).

Unauthorized (40001).

Under minimum age (20024).

Unknown account (10001).

Unknown application (10002).

Unknown application command (10063).

Unknown application command permissions (10066).

Unknown asset (10021).

Unknown ban (10026).

Unknown branch (10032).

Unknown build (10030).

Unknown channel (10003).

Unknown discoverable server category (10059).

Unknown emoji (10014).

Unknown entitlement (10029).

Unknown gift code (10038).

Unknown guild (10004).

Unknown Guild Member Verification Form (10068).

Unknown Guild Scheduled Event (10070).

Unknown Guild Scheduled Event User (10071).

Unknown guild template (10057).

Unknown Guild Welcome Screen (10069).

Unknown integration (10005).

Unknown interaction (10062).

Unknown invite (10006).

Unknown invite target users (10129).

Unknown invite target users job (10124).

Unknown lobby (10031).

Unknown member (10007).

Unknown message (10008).

Unknown permission overwrite (10009).

Unknown premium server subscribe cooldown (10050).

Unknown provider (10010).

Unknown redistributable (10036).

Unknown role (10011).

Unknown session (10020).

Unknown SKU (10027).

Unknown sound (10097).

Unknown Stage Instance (10067).

Unknown sticker (10060).

Unknown sticker pack (10061).

Unknown store directory layout (10033).

Unknown Store Listing (10028).

Unknown stream (10049).

Unknown Tag (10087).

Unknown token (10012).

Unknown user (10013).

Unknown voice state (10065).

Unknown webhook (10015).

Unknown webhook service (10016).

Uploaded file not found (50146).

User account must be verified (50178).

User is banned from guild (40007).

Account verification required (40002).

Voice messages cannot be edited (50162).

Voice messages must have supporting metadata (50161).

Voice messages do not support additional content (50159).

Voice messages must have a single audio attachment (50160).

Webhook forum post cannot have both thread_name and thread_id (220002).

Webhook forum post requires thread_name or thread_id (220001).

Webhook services cannot be used in forum channels (220004).

Webhooks can only create threads in forum channels (220003).

Functions

all()

@spec all() :: %{required(integer()) => {atom(), String.t()}}

Returns all known error codes as a map of integer() => {atom(), String.t()}.

announcement_rate_limit()

@spec announcement_rate_limit() :: 20022

Announcement rate limit (20022).

api_resource_overloaded()

@spec api_resource_overloaded() :: 130_000

API resource currently overloaded (130000).

application_command_name_exists()

@spec application_command_name_exists() :: 40041

Application command name already exists (40041).

application_interaction_failed()

@spec application_interaction_failed() :: 40043

Application interaction failed to send (40043).

application_not_available()

@spec application_not_available() :: 110_001

Application not yet available (110001).

before_earlier_than_thread_creation()

@spec before_earlier_than_thread_creation() :: 50085

before value earlier than thread creation date (50085).

bitrate_too_high()

@spec bitrate_too_high() :: 30052

Bitrate too high for channel type (30052).

bots_cannot_use()

@spec bots_cannot_use() :: 20001

Bots cannot use this endpoint (20001).

cannot_convert_emoji_type()

@spec cannot_convert_emoji_type() :: 50145

Cannot convert between premium and normal emoji (50145).

cannot_delete_community_channel()

@spec cannot_delete_community_channel() :: 50074

Cannot delete community-required channel (50074).

cannot_delete_guild_subscription_integration()

@spec cannot_delete_guild_subscription_integration() :: 50163

Cannot delete guild subscription integration (50163).

cannot_edit_other_user_message()

@spec cannot_edit_other_user_message() :: 50005

Cannot edit another user's message (50005).

cannot_edit_poll_message()

@spec cannot_edit_poll_message() :: 520_003

Cannot edit a poll message (520003).

cannot_edit_stickers_in_message()

@spec cannot_edit_stickers_in_message() :: 50080

Cannot edit stickers in a message (50080).

cannot_enable_onboarding()

@spec cannot_enable_onboarding() :: 350_000

Cannot enable onboarding, requirements not met (350000).

cannot_execute_on_channel_type()

@spec cannot_execute_on_channel_type() :: 50024

Cannot execute on this channel type (50024).

cannot_execute_on_dm()

@spec cannot_execute_on_dm() :: 50003

Cannot execute action on a DM channel (50003).

cannot_execute_on_system_message()

@spec cannot_execute_on_system_message() :: 50021

Cannot execute on system message (50021).

cannot_expire_non_poll()

@spec cannot_expire_non_poll() :: 520_006

Cannot expire a non-poll message (520006).

cannot_mix_subscription_roles()

@spec cannot_mix_subscription_roles() :: 50144

Cannot mix subscription and non-subscription roles for emoji (50144).

cannot_modify_system_webhook()

@spec cannot_modify_system_webhook() :: 50073

Cannot modify a system webhook (50073).

cannot_reply_without_read_history()

@spec cannot_reply_without_read_history() :: 160_002

Cannot reply without read message history permission (160002).

cannot_self_redeem_gift()

@spec cannot_self_redeem_gift() :: 50054

Cannot self-redeem gift (50054).

cannot_send_empty_message()

@spec cannot_send_empty_message() :: 50006

Cannot send an empty message (50006).

cannot_send_in_forum()

@spec cannot_send_in_forum() :: 40058

Cannot send a message in a forum channel (40058).

cannot_send_in_non_text()

@spec cannot_send_in_non_text() :: 50008

Cannot send messages in a non-text channel (50008).

cannot_send_to_user()

@spec cannot_send_to_user() :: 50007

Cannot send messages to this user (50007).

cannot_send_voice_messages()

@spec cannot_send_voice_messages() :: 50173

Cannot send voice messages in this channel (50173).

cannot_transfer_ownership_to_bot()

@spec cannot_transfer_ownership_to_bot() :: 50132

Cannot transfer ownership to bot (50132).

cannot_update_finished_event()

@spec cannot_update_finished_event() :: 180_000

Cannot update a finished event (180000).

cannot_update_onboarding()

@spec cannot_update_onboarding() :: 350_001

Cannot update onboarding while below requirements (350001).

cannot_use_burst_reactions()

@spec cannot_use_burst_reactions() :: 90002

User cannot use burst reactions (90002).

cannot_use_emoji_in_poll()

@spec cannot_use_emoji_in_poll() :: 520_004

Cannot use emoji included with poll (520004).

channel_verification_too_high()

@spec channel_verification_too_high() :: 50009

Channel verification level too high (50009).

channel_write_rate_limit()

@spec channel_write_rate_limit() :: 20028

Channel write rate limit (20028).

cloudflare_blocking()

@spec cloudflare_blocking() :: 40333

Cloudflare blocking request (40333).

code(name)

@spec code(atom()) :: integer() | nil

Returns the integer error code for the given atom name, or nil if unknown.

community_channels_must_be_text()

@spec community_channels_must_be_text() :: 50086

Community channels must be text channels (50086).

connection_revoked()

@spec connection_revoked() :: 40012

Connection has been revoked (40012).

disallowed_words()

@spec disallowed_words() :: 20031

Disallowed words in content (20031).

dm_rate_limit()

@spec dm_rate_limit() :: 40003

DM rate limit (40003).

entitlement_already_granted()

@spec entitlement_already_granted() :: 40074

Entitlement already granted (40074).

event_entity_type_mismatch()

@spec event_entity_type_mismatch() :: 50091

Event entity type mismatch (50091).

explicit_content_blocked()

@spec explicit_content_blocked() :: 20009

Explicit content blocked (20009).

failed_to_ban_users()

@spec failed_to_ban_users() :: 500_000

Failed to ban users (500000).

failed_to_create_stage_for_event()

@spec failed_to_create_stage_for_event() :: 180_002

Failed to create stage for stage event (180002).

failed_to_generate_username()

@spec failed_to_generate_username() :: 530_006

Failed to generate unique username (530006).

failed_to_resize_asset()

@spec failed_to_resize_asset() :: 50138

Failed to resize asset (50138).

feature_temporarily_disabled()

@spec feature_temporarily_disabled() :: 40006

Feature temporarily disabled server-side (40006).

file_duration_exceeds_max()

@spec file_duration_exceeds_max() :: 50124

File duration exceeds maximum (50124).

file_exceeds_max_size()

@spec file_exceeds_max_size() :: 50045

File exceeds maximum size (50045).

file_uploads_limited()

@spec file_uploads_limited() :: 400_001

File uploads limited for this guild (400001).

general_error()

@spec general_error() :: 0

General error (0).

guild_already_has_template()

@spec guild_already_has_template() :: 30031

Guild already has a template (30031).

guild_channels_too_large()

@spec guild_channels_too_large() :: 30061

Guild channels too large (30061).

guild_premium_level_too_low()

@spec guild_premium_level_too_low() :: 20035

Guild premium subscription level too low (20035).

guild_widget_disabled()

@spec guild_widget_disabled() :: 50004

Guild widget disabled (50004).

id_token_audience_mismatch()

@spec id_token_audience_mismatch() :: 530_003

ID token audience mismatch (530003).

id_token_expired()

@spec id_token_expired() :: 530_001

ID token JWT expired (530001).

id_token_issuer_mismatch()

@spec id_token_issuer_mismatch() :: 530_002

ID token issuer mismatch (530002).

id_token_too_old()

@spec id_token_too_old() :: 530_004

ID token too old (530004).

interaction_already_acknowledged()

@spec interaction_already_acknowledged() :: 40060

Interaction already acknowledged (40060).

invalid_account_type()

@spec invalid_account_type() :: 50002

Invalid account type (50002).

invalid_activity_action()

@spec invalid_activity_action() :: 50039

Invalid Activity Action (50039).

invalid_api_version()

@spec invalid_api_version() :: 50041

Invalid API version (50041).

invalid_auth_token()

@spec invalid_auth_token() :: 50014

Invalid authentication token (50014).

invalid_bulk_delete_count()

@spec invalid_bulk_delete_count() :: 50016

Invalid bulk delete message count (50016).

invalid_channel_type_for_poll()

@spec invalid_channel_type_for_poll() :: 520_002

Invalid channel type for poll creation (520002).

invalid_client_secret()

@spec invalid_client_secret() :: 530_007

Invalid client secret (530007).

invalid_emoji()

@spec invalid_emoji() :: 50151

Invalid emoji (50151).

invalid_file()

@spec invalid_file() :: 50110

Invalid file (50110).

invalid_file_duration()

@spec invalid_file_duration() :: 50192

Invalid file duration (50192).

invalid_file_type()

@spec invalid_file_type() :: 50123

Invalid file type (50123).

invalid_file_uploaded()

@spec invalid_file_uploaded() :: 50046

Invalid file uploaded (50046).

invalid_form_body()

@spec invalid_form_body() :: 50035

Invalid form body or Content-Type (50035).

invalid_guild()

@spec invalid_guild() :: 50055

Invalid Guild (50055).

invalid_json()

@spec invalid_json() :: 50109

Invalid JSON in request body (50109).

invalid_lottie_json()

@spec invalid_lottie_json() :: 170_001

Invalid Lottie JSON (170001).

invalid_message_type()

@spec invalid_message_type() :: 50068

Invalid message type (50068).

invalid_mfa_level()

@spec invalid_mfa_level() :: 50017

Invalid MFA level (50017).

invalid_oauth2_access_token()

@spec invalid_oauth2_access_token() :: 50025

Invalid OAuth2 access token (50025).

invalid_oauth2_state()

@spec invalid_oauth2_state() :: 50012

Invalid OAuth2 state (50012).

invalid_or_taken_invite_code()

@spec invalid_or_taken_invite_code() :: 50020

Invalid or taken invite code (50020).

invalid_recipients()

@spec invalid_recipients() :: 50033

Invalid recipient(s) (50033).

invalid_request_origin()

@spec invalid_request_origin() :: 50067

Invalid request origin (50067).

invalid_role()

@spec invalid_role() :: 50028

Invalid role (50028).

invalid_sku()

@spec invalid_sku() :: 50057

Invalid SKU (50057).

invalid_sticker_sent()

@spec invalid_sticker_sent() :: 50081

Invalid sticker sent (50081).

invalid_thread_notification_settings()

@spec invalid_thread_notification_settings() :: 50084

Invalid thread notification settings (50084).

invalid_webhook_token()

@spec invalid_webhook_token() :: 50027

Invalid webhook token (50027).

invite_accepted_without_bot()

@spec invite_accepted_without_bot() :: 50036

Invite accepted without bot in guild (50036).

known?(code)

@spec known?(integer()) :: boolean()

Returns true if the given integer error code is a known Discord error code.

lottie_max_dimensions()

@spec lottie_max_dimensions() :: 170_005

Lottie maximum dimensions exceeded (170005).

lottie_no_rasterized_images()

@spec lottie_no_rasterized_images() :: 170_002

Lottie cannot contain rasterized images (170002).

max_active_announcement_threads()

@spec max_active_announcement_threads() :: 160_007

Maximum active announcement threads reached (160007).

max_active_threads()

@spec max_active_threads() :: 160_006

Maximum active threads reached (160006).

max_animated_emojis()

@spec max_animated_emojis() :: 30018

Maximum number of animated emojis reached (30018).

max_application_commands()

@spec max_application_commands() :: 30032

Maximum number of application commands reached (30032).

max_attachments()

@spec max_attachments() :: 30015

Maximum number of attachments reached (30015).

max_ban_fetches()

@spec max_ban_fetches() :: 30037

Maximum ban fetches reached (30037).

max_channel_permission_overwrites()

@spec max_channel_permission_overwrites() :: 30060

Maximum channel permission overwrites reached (30060).

max_daily_application_command_creates()

@spec max_daily_application_command_creates() :: 30034

Maximum daily application command creates reached (30034).

max_emojis()

@spec max_emojis() :: 30008

Maximum number of emojis reached (30008).

max_follow_up_messages()

@spec max_follow_up_messages() :: 40094

Maximum follow-up messages reached (40094).

max_forum_tags()

@spec max_forum_tags() :: 30048

Maximum forum tags reached (30048).

max_friends()

@spec max_friends() :: 30002

Maximum number of friends reached (30002).

max_group_dms()

@spec max_group_dms() :: 30011

Maximum number of group DMs reached (30011).

max_guild_channels()

@spec max_guild_channels() :: 30013

Maximum number of guild channels reached (30013).

max_guild_webhooks()

@spec max_guild_webhooks() :: 30058

Maximum webhooks per guild reached (30058).

max_guild_widget_updates()

@spec max_guild_widget_updates() :: 30042

Maximum guild widget settings updates reached (30042).

max_guilds()

@spec max_guilds() :: 30001

Maximum number of guilds reached (30001).

max_invites()

@spec max_invites() :: 30016

Maximum number of invites reached (30016).

max_non_member_bans()

@spec max_non_member_bans() :: 30035

Maximum non-member bans exceeded (30035).

max_old_message_edits()

@spec max_old_message_edits() :: 30046

Maximum old message edits reached (30046).

max_pinned_threads()

@spec max_pinned_threads() :: 30047

Maximum pinned threads in forum reached (30047).

max_pins()

@spec max_pins() :: 30003

Maximum number of pins reached (30003).

max_premium_emojis()

@spec max_premium_emojis() :: 30056

Maximum premium emojis reached (30056).

max_prune_requests()

@spec max_prune_requests() :: 30040

Maximum prune requests reached (30040).

max_reactions()

@spec max_reactions() :: 30010

Maximum number of reactions reached (30010).

max_recipients()

@spec max_recipients() :: 30004

Maximum number of recipients reached (30004).

max_roles()

@spec max_roles() :: 30005

Maximum number of guild roles reached (30005).

max_server_categories()

@spec max_server_categories() :: 30030

Maximum number of server categories reached (30030).

max_server_members()

@spec max_server_members() :: 30019

Maximum number of server members reached (30019).

max_soundboard_sounds()

@spec max_soundboard_sounds() :: 30045

Maximum soundboard sounds reached (30045).

max_stickers()

@spec max_stickers() :: 30039

Maximum number of stickers reached (30039).

max_thread_participants()

@spec max_thread_participants() :: 30033

Maximum number of thread participants reached (30033).

max_uncompleted_guild_scheduled_events()

@spec max_uncompleted_guild_scheduled_events() :: 30038

Maximum uncompleted guild scheduled events reached (30038).

max_webhooks()

@spec max_webhooks() :: 30007

Maximum number of webhooks reached (30007).

message(code)

@spec message(integer()) :: String.t() | nil

Returns the human-readable message for the given integer error code, or nil if unknown.

message_already_crossposted()

@spec message_already_crossposted() :: 40033

Message already crossposted (40033).

message_blocked_by_automod()

@spec message_blocked_by_automod() :: 200_000

Message blocked by automatic moderation (200000).

message_too_old_to_bulk_delete()

@spec message_too_old_to_bulk_delete() :: 50034

Message too old to bulk delete (50034).

missing_access()

@spec missing_access() :: 50001

Missing access (50001).

missing_oauth2_scope()

@spec missing_oauth2_scope() :: 50026

Missing required OAuth2 scope (50026).

missing_permissions()

@spec missing_permissions() :: 50013

Missing permissions (50013).

monetization_required()

@spec monetization_required() :: 50097

Monetization required (50097).

more_boosts_required()

@spec more_boosts_required() :: 50101

More boosts required (50101).

name(code)

@spec name(integer()) :: atom() | nil

Returns the atom name for the given integer error code, or nil if unknown.

no_non_moderator_tags()

@spec no_non_moderator_tags() :: 40066

No non-moderator tags available (40066).

no_permission_to_send_sticker()

@spec no_permission_to_send_sticker() :: 50600

No permission to send sticker (50600).

no_provisional_account_permission()

@spec no_provisional_account_permission() :: 530_000

No permission to use provisional accounts (530000).

no_users_with_tag()

@spec no_users_with_tag() :: 80004

No users with DiscordTag exist (80004).

not_authorized_for_application()

@spec not_authorized_for_application() :: 20012

Not authorized for application (20012).

note_too_long()

@spec note_too_long() :: 50015

Note too long (50015).

oauth2_limit_reached()

@spec oauth2_limit_reached() :: 50011

OAuth2 application limit reached (50011).

oauth2_no_bot()

@spec oauth2_no_bot() :: 50010

OAuth2 application does not have a bot (50010).

only_bots_can_use()

@spec only_bots_can_use() :: 20002

Only bots can use this endpoint (20002).

only_consumable_skus()

@spec only_consumable_skus() :: 40018

Only consumable SKUs can be consumed (40018).

only_owner()

@spec only_owner() :: 20018

Only the owner can perform this action (20018).

only_sandbox_entitlements()

@spec only_sandbox_entitlements() :: 40019

Only sandbox entitlements can be deleted (40019).

operation_on_archived_thread()

@spec operation_on_archived_thread() :: 50083

Operation on archived thread (50083).

owner_cannot_be_pending()

@spec owner_cannot_be_pending() :: 50131

Owner cannot be pending member (50131).

payment_source_required()

@spec payment_source_required() :: 50070

Payment source required to redeem gift (50070).

pin_wrong_channel()

@spec pin_wrong_channel() :: 50019

Message pinned to wrong channel (50019).

poll_expired()

@spec poll_expired() :: 520_001

Poll expired (520001).

poll_voting_blocked()

@spec poll_voting_blocked() :: 520_000

Poll voting blocked (520000).

reaction_blocked()

@spec reaction_blocked() :: 90001

Reaction was blocked (90001).

request_entity_too_large()

@spec request_entity_too_large() :: 40005

Request entity too large (40005).

send_messages_temporarily_disabled()

@spec send_messages_temporarily_disabled() :: 40004

Send messages temporarily disabled (40004).

server_not_available_in_location()

@spec server_not_available_in_location() :: 50095

Server not available in location (50095).

server_write_rate_limit()

@spec server_write_rate_limit() :: 20029

Server write rate limit (20029).

service_resource_rate_limited()

@spec service_resource_rate_limited() :: 40062

Service resource is being rate limited (40062).

slowmode_rate_limit()

@spec slowmode_rate_limit() :: 20016

Slowmode rate limit (20016).

stage_already_open()

@spec stage_already_open() :: 150_006

Stage is already open (150006).

sticker_invalid_frame_rate()

@spec sticker_invalid_frame_rate() :: 170_006

Sticker frame rate invalid (170006).

sticker_max_animation_duration()

@spec sticker_max_animation_duration() :: 170_007

Sticker animation duration exceeds maximum (170007).

sticker_max_frame_count()

@spec sticker_max_frame_count() :: 170_004

Sticker frame count exceeds maximum (170004).

sticker_max_framerate_exceeded()

@spec sticker_max_framerate_exceeded() :: 170_003

Sticker maximum framerate exceeded (170003).

tag_names_must_be_unique()

@spec tag_names_must_be_unique() :: 40061

Tag names must be unique (40061).

tag_required_for_forum_post()

@spec tag_required_for_forum_post() :: 40067

Tag required for forum post (40067).

target_user_not_connected()

@spec target_user_not_connected() :: 40032

Target user not connected to voice (40032).

thread_already_created_for_message()

@spec thread_already_created_for_message() :: 160_004

Thread already created for this message (160004).

thread_locked()

@spec thread_locked() :: 160_005

Thread is locked (160005).

title_blocked_by_automod()

@spec title_blocked_by_automod() :: 200_001

Title blocked by automatic moderation (200001).

two_factor_required()

@spec two_factor_required() :: 60003

Two-factor authentication required (60003).

unauthorized()

@spec unauthorized() :: 40001

Unauthorized (40001).

under_minimum_age()

@spec under_minimum_age() :: 20024

Under minimum age (20024).

unknown_account()

@spec unknown_account() :: 10001

Unknown account (10001).

unknown_application()

@spec unknown_application() :: 10002

Unknown application (10002).

unknown_application_command()

@spec unknown_application_command() :: 10063

Unknown application command (10063).

unknown_application_command_permissions()

@spec unknown_application_command_permissions() :: 10066

Unknown application command permissions (10066).

unknown_asset()

@spec unknown_asset() :: 10021

Unknown asset (10021).

unknown_ban()

@spec unknown_ban() :: 10026

Unknown ban (10026).

unknown_branch()

@spec unknown_branch() :: 10032

Unknown branch (10032).

unknown_build()

@spec unknown_build() :: 10030

Unknown build (10030).

unknown_channel()

@spec unknown_channel() :: 10003

Unknown channel (10003).

unknown_discoverable_server_category()

@spec unknown_discoverable_server_category() :: 10059

Unknown discoverable server category (10059).

unknown_emoji()

@spec unknown_emoji() :: 10014

Unknown emoji (10014).

unknown_entitlement()

@spec unknown_entitlement() :: 10029

Unknown entitlement (10029).

unknown_gift_code()

@spec unknown_gift_code() :: 10038

Unknown gift code (10038).

unknown_guild()

@spec unknown_guild() :: 10004

Unknown guild (10004).

unknown_guild_member_verification_form()

@spec unknown_guild_member_verification_form() :: 10068

Unknown Guild Member Verification Form (10068).

unknown_guild_scheduled_event()

@spec unknown_guild_scheduled_event() :: 10070

Unknown Guild Scheduled Event (10070).

unknown_guild_scheduled_event_user()

@spec unknown_guild_scheduled_event_user() :: 10071

Unknown Guild Scheduled Event User (10071).

unknown_guild_template()

@spec unknown_guild_template() :: 10057

Unknown guild template (10057).

unknown_guild_welcome_screen()

@spec unknown_guild_welcome_screen() :: 10069

Unknown Guild Welcome Screen (10069).

unknown_integration()

@spec unknown_integration() :: 10005

Unknown integration (10005).

unknown_interaction()

@spec unknown_interaction() :: 10062

Unknown interaction (10062).

unknown_invite()

@spec unknown_invite() :: 10006

Unknown invite (10006).

unknown_invite_target_users()

@spec unknown_invite_target_users() :: 10129

Unknown invite target users (10129).

unknown_invite_target_users_job()

@spec unknown_invite_target_users_job() :: 10124

Unknown invite target users job (10124).

unknown_lobby()

@spec unknown_lobby() :: 10031

Unknown lobby (10031).

unknown_member()

@spec unknown_member() :: 10007

Unknown member (10007).

unknown_message()

@spec unknown_message() :: 10008

Unknown message (10008).

unknown_permission_overwrite()

@spec unknown_permission_overwrite() :: 10009

Unknown permission overwrite (10009).

unknown_premium_server_subscribe_cooldown()

@spec unknown_premium_server_subscribe_cooldown() :: 10050

Unknown premium server subscribe cooldown (10050).

unknown_provider()

@spec unknown_provider() :: 10010

Unknown provider (10010).

unknown_redistributable()

@spec unknown_redistributable() :: 10036

Unknown redistributable (10036).

unknown_role()

@spec unknown_role() :: 10011

Unknown role (10011).

unknown_session()

@spec unknown_session() :: 10020

Unknown session (10020).

unknown_sku()

@spec unknown_sku() :: 10027

Unknown SKU (10027).

unknown_sound()

@spec unknown_sound() :: 10097

Unknown sound (10097).

unknown_stage_instance()

@spec unknown_stage_instance() :: 10067

Unknown Stage Instance (10067).

unknown_sticker()

@spec unknown_sticker() :: 10060

Unknown sticker (10060).

unknown_sticker_pack()

@spec unknown_sticker_pack() :: 10061

Unknown sticker pack (10061).

unknown_store_directory_layout()

@spec unknown_store_directory_layout() :: 10033

Unknown store directory layout (10033).

unknown_store_listing()

@spec unknown_store_listing() :: 10028

Unknown Store Listing (10028).

unknown_stream()

@spec unknown_stream() :: 10049

Unknown stream (10049).

unknown_tag()

@spec unknown_tag() :: 10087

Unknown Tag (10087).

unknown_token()

@spec unknown_token() :: 10012

Unknown token (10012).

unknown_user()

@spec unknown_user() :: 10013

Unknown user (10013).

unknown_voice_state()

@spec unknown_voice_state() :: 10065

Unknown voice state (10065).

unknown_webhook()

@spec unknown_webhook() :: 10015

Unknown webhook (10015).

unknown_webhook_service()

@spec unknown_webhook_service() :: 10016

Unknown webhook service (10016).

uploaded_file_not_found()

@spec uploaded_file_not_found() :: 50146

Uploaded file not found (50146).

user_account_must_be_verified()

@spec user_account_must_be_verified() :: 50178

User account must be verified (50178).

user_banned()

@spec user_banned() :: 40007

User is banned from guild (40007).

verify_account()

@spec verify_account() :: 40002

Account verification required (40002).

voice_messages_cannot_be_edited()

@spec voice_messages_cannot_be_edited() :: 50162

Voice messages cannot be edited (50162).

voice_messages_must_have_metadata()

@spec voice_messages_must_have_metadata() :: 50161

Voice messages must have supporting metadata (50161).

voice_messages_no_additional_content()

@spec voice_messages_no_additional_content() :: 50159

Voice messages do not support additional content (50159).

voice_messages_single_audio()

@spec voice_messages_single_audio() :: 50160

Voice messages must have a single audio attachment (50160).

webhook_forum_both_thread_fields()

@spec webhook_forum_both_thread_fields() :: 220_002

Webhook forum post cannot have both thread_name and thread_id (220002).

webhook_forum_requires_thread()

@spec webhook_forum_requires_thread() :: 220_001

Webhook forum post requires thread_name or thread_id (220001).

webhook_services_cannot_use_forum()

@spec webhook_services_cannot_use_forum() :: 220_004

Webhook services cannot be used in forum channels (220004).

webhooks_can_only_create_forum_threads()

@spec webhooks_can_only_create_forum_threads() :: 220_003

Webhooks can only create threads in forum channels (220003).