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
| Range | Category |
|---|---|
| 0 | General |
| 10xxx | Unknown Resource |
| 20xxx | Action Prohibition |
| 30xxx | Maximum Limits |
| 40xxx | Authorization / Rate Limits |
| 50xxx | Invalid State / Permissions |
| 60xxx | Two-Factor Authentication |
| 80xxx | User Lookup |
| 90xxx | Reactions |
| 110xxx | Application Availability |
| 130xxx | API Overload |
| 150xxx | Stage |
| 160xxx | Threads |
| 170xxx | Sticker Validation |
| 180xxx | Scheduled Events |
| 200xxx | Auto Moderation |
| 220xxx | Webhook Forum |
| 240xxx | Harmful Links |
| 340xxx–350xxx | Onboarding |
| 400xxx | File Uploads |
| 500xxx | Bans |
| 520xxx | Polls |
| 530xxx | Provisional 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
Returns all known error codes as a map of integer() => {atom(), String.t()}.
@spec announcement_rate_limit() :: 20022
Announcement rate limit (20022).
@spec api_resource_overloaded() :: 130_000
API resource currently overloaded (130000).
@spec application_command_name_exists() :: 40041
Application command name already exists (40041).
@spec application_interaction_failed() :: 40043
Application interaction failed to send (40043).
@spec application_not_available() :: 110_001
Application not yet available (110001).
@spec before_earlier_than_thread_creation() :: 50085
before value earlier than thread creation date (50085).
@spec bitrate_too_high() :: 30052
Bitrate too high for channel type (30052).
@spec bots_cannot_use() :: 20001
Bots cannot use this endpoint (20001).
@spec cannot_convert_emoji_type() :: 50145
Cannot convert between premium and normal emoji (50145).
@spec cannot_delete_community_channel() :: 50074
Cannot delete community-required channel (50074).
@spec cannot_delete_guild_subscription_integration() :: 50163
Cannot delete guild subscription integration (50163).
@spec cannot_edit_other_user_message() :: 50005
Cannot edit another user's message (50005).
@spec cannot_edit_poll_message() :: 520_003
Cannot edit a poll message (520003).
@spec cannot_edit_stickers_in_message() :: 50080
Cannot edit stickers in a message (50080).
@spec cannot_enable_onboarding() :: 350_000
Cannot enable onboarding, requirements not met (350000).
@spec cannot_execute_on_channel_type() :: 50024
Cannot execute on this channel type (50024).
@spec cannot_execute_on_dm() :: 50003
Cannot execute action on a DM channel (50003).
@spec cannot_execute_on_system_message() :: 50021
Cannot execute on system message (50021).
@spec cannot_expire_non_poll() :: 520_006
Cannot expire a non-poll message (520006).
@spec cannot_mix_subscription_roles() :: 50144
Cannot mix subscription and non-subscription roles for emoji (50144).
@spec cannot_modify_system_webhook() :: 50073
Cannot modify a system webhook (50073).
@spec cannot_reply_without_read_history() :: 160_002
Cannot reply without read message history permission (160002).
@spec cannot_self_redeem_gift() :: 50054
Cannot self-redeem gift (50054).
@spec cannot_send_empty_message() :: 50006
Cannot send an empty message (50006).
@spec cannot_send_in_forum() :: 40058
Cannot send a message in a forum channel (40058).
@spec cannot_send_in_non_text() :: 50008
Cannot send messages in a non-text channel (50008).
@spec cannot_send_to_user() :: 50007
Cannot send messages to this user (50007).
@spec cannot_send_voice_messages() :: 50173
Cannot send voice messages in this channel (50173).
@spec cannot_transfer_ownership_to_bot() :: 50132
Cannot transfer ownership to bot (50132).
@spec cannot_update_finished_event() :: 180_000
Cannot update a finished event (180000).
@spec cannot_update_onboarding() :: 350_001
Cannot update onboarding while below requirements (350001).
@spec cannot_use_burst_reactions() :: 90002
User cannot use burst reactions (90002).
@spec cannot_use_emoji_in_poll() :: 520_004
Cannot use emoji included with poll (520004).
@spec channel_verification_too_high() :: 50009
Channel verification level too high (50009).
@spec channel_write_rate_limit() :: 20028
Channel write rate limit (20028).
@spec cloudflare_blocking() :: 40333
Cloudflare blocking request (40333).
Returns the integer error code for the given atom name, or nil if unknown.
@spec community_channels_must_be_text() :: 50086
Community channels must be text channels (50086).
@spec connection_revoked() :: 40012
Connection has been revoked (40012).
@spec disallowed_words() :: 20031
Disallowed words in content (20031).
@spec dm_rate_limit() :: 40003
DM rate limit (40003).
@spec entitlement_already_granted() :: 40074
Entitlement already granted (40074).
@spec event_entity_type_mismatch() :: 50091
Event entity type mismatch (50091).
@spec explicit_content_blocked() :: 20009
Explicit content blocked (20009).
@spec failed_to_ban_users() :: 500_000
Failed to ban users (500000).
@spec failed_to_create_stage_for_event() :: 180_002
Failed to create stage for stage event (180002).
@spec failed_to_generate_username() :: 530_006
Failed to generate unique username (530006).
@spec failed_to_resize_asset() :: 50138
Failed to resize asset (50138).
@spec feature_temporarily_disabled() :: 40006
Feature temporarily disabled server-side (40006).
@spec file_duration_exceeds_max() :: 50124
File duration exceeds maximum (50124).
@spec file_exceeds_max_size() :: 50045
File exceeds maximum size (50045).
@spec file_uploads_limited() :: 400_001
File uploads limited for this guild (400001).
@spec general_error() :: 0
General error (0).
@spec guild_already_has_template() :: 30031
Guild already has a template (30031).
@spec guild_channels_too_large() :: 30061
Guild channels too large (30061).
@spec guild_widget_disabled() :: 50004
Guild widget disabled (50004).
@spec id_token_audience_mismatch() :: 530_003
ID token audience mismatch (530003).
@spec id_token_expired() :: 530_001
ID token JWT expired (530001).
@spec id_token_issuer_mismatch() :: 530_002
ID token issuer mismatch (530002).
@spec id_token_too_old() :: 530_004
ID token too old (530004).
@spec interaction_already_acknowledged() :: 40060
Interaction already acknowledged (40060).
@spec invalid_account_type() :: 50002
Invalid account type (50002).
@spec invalid_activity_action() :: 50039
Invalid Activity Action (50039).
@spec invalid_api_version() :: 50041
Invalid API version (50041).
@spec invalid_auth_token() :: 50014
Invalid authentication token (50014).
@spec invalid_bulk_delete_count() :: 50016
Invalid bulk delete message count (50016).
@spec invalid_channel_type_for_poll() :: 520_002
Invalid channel type for poll creation (520002).
@spec invalid_client_secret() :: 530_007
Invalid client secret (530007).
@spec invalid_emoji() :: 50151
Invalid emoji (50151).
@spec invalid_file() :: 50110
Invalid file (50110).
@spec invalid_file_duration() :: 50192
Invalid file duration (50192).
@spec invalid_file_type() :: 50123
Invalid file type (50123).
@spec invalid_file_uploaded() :: 50046
Invalid file uploaded (50046).
@spec invalid_form_body() :: 50035
Invalid form body or Content-Type (50035).
@spec invalid_guild() :: 50055
Invalid Guild (50055).
@spec invalid_json() :: 50109
Invalid JSON in request body (50109).
@spec invalid_lottie_json() :: 170_001
Invalid Lottie JSON (170001).
@spec invalid_message_type() :: 50068
Invalid message type (50068).
@spec invalid_mfa_level() :: 50017
Invalid MFA level (50017).
@spec invalid_oauth2_access_token() :: 50025
Invalid OAuth2 access token (50025).
@spec invalid_oauth2_state() :: 50012
Invalid OAuth2 state (50012).
@spec invalid_or_taken_invite_code() :: 50020
Invalid or taken invite code (50020).
@spec invalid_recipients() :: 50033
Invalid recipient(s) (50033).
@spec invalid_request_origin() :: 50067
Invalid request origin (50067).
@spec invalid_role() :: 50028
Invalid role (50028).
@spec invalid_sku() :: 50057
Invalid SKU (50057).
@spec invalid_sticker_sent() :: 50081
Invalid sticker sent (50081).
@spec invalid_thread_notification_settings() :: 50084
Invalid thread notification settings (50084).
@spec invalid_webhook_token() :: 50027
Invalid webhook token (50027).
@spec invite_accepted_without_bot() :: 50036
Invite accepted without bot in guild (50036).
Returns true if the given integer error code is a known Discord error code.
@spec lottie_max_dimensions() :: 170_005
Lottie maximum dimensions exceeded (170005).
@spec lottie_no_rasterized_images() :: 170_002
Lottie cannot contain rasterized images (170002).
@spec max_active_announcement_threads() :: 160_007
Maximum active announcement threads reached (160007).
@spec max_active_threads() :: 160_006
Maximum active threads reached (160006).
@spec max_animated_emojis() :: 30018
Maximum number of animated emojis reached (30018).
@spec max_application_commands() :: 30032
Maximum number of application commands reached (30032).
@spec max_attachments() :: 30015
Maximum number of attachments reached (30015).
@spec max_ban_fetches() :: 30037
Maximum ban fetches reached (30037).
@spec max_channel_permission_overwrites() :: 30060
Maximum channel permission overwrites reached (30060).
@spec max_daily_application_command_creates() :: 30034
Maximum daily application command creates reached (30034).
@spec max_emojis() :: 30008
Maximum number of emojis reached (30008).
@spec max_follow_up_messages() :: 40094
Maximum follow-up messages reached (40094).
@spec max_forum_tags() :: 30048
Maximum forum tags reached (30048).
@spec max_friends() :: 30002
Maximum number of friends reached (30002).
@spec max_group_dms() :: 30011
Maximum number of group DMs reached (30011).
@spec max_guild_channels() :: 30013
Maximum number of guild channels reached (30013).
@spec max_guild_webhooks() :: 30058
Maximum webhooks per guild reached (30058).
@spec max_guild_widget_updates() :: 30042
Maximum guild widget settings updates reached (30042).
@spec max_guilds() :: 30001
Maximum number of guilds reached (30001).
@spec max_invites() :: 30016
Maximum number of invites reached (30016).
@spec max_non_member_bans() :: 30035
Maximum non-member bans exceeded (30035).
@spec max_old_message_edits() :: 30046
Maximum old message edits reached (30046).
@spec max_pinned_threads() :: 30047
Maximum pinned threads in forum reached (30047).
@spec max_pins() :: 30003
Maximum number of pins reached (30003).
@spec max_prune_requests() :: 30040
Maximum prune requests reached (30040).
@spec max_reactions() :: 30010
Maximum number of reactions reached (30010).
@spec max_recipients() :: 30004
Maximum number of recipients reached (30004).
@spec max_roles() :: 30005
Maximum number of guild roles reached (30005).
@spec max_server_categories() :: 30030
Maximum number of server categories reached (30030).
@spec max_server_members() :: 30019
Maximum number of server members reached (30019).
@spec max_soundboard_sounds() :: 30045
Maximum soundboard sounds reached (30045).
@spec max_stickers() :: 30039
Maximum number of stickers reached (30039).
@spec max_thread_participants() :: 30033
Maximum number of thread participants reached (30033).
@spec max_uncompleted_guild_scheduled_events() :: 30038
Maximum uncompleted guild scheduled events reached (30038).
@spec max_webhooks() :: 30007
Maximum number of webhooks reached (30007).
Returns the human-readable message for the given integer error code, or nil if unknown.
@spec message_already_crossposted() :: 40033
Message already crossposted (40033).
@spec message_blocked_by_automod() :: 200_000
Message blocked by automatic moderation (200000).
@spec message_blocked_by_harmful_links_filter() :: 240_000
Message blocked by harmful links filter (240000).
@spec message_too_old_to_bulk_delete() :: 50034
Message too old to bulk delete (50034).
@spec missing_access() :: 50001
Missing access (50001).
@spec missing_oauth2_scope() :: 50026
Missing required OAuth2 scope (50026).
@spec missing_permissions() :: 50013
Missing permissions (50013).
@spec monetization_required() :: 50097
Monetization required (50097).
@spec more_boosts_required() :: 50101
More boosts required (50101).
Returns the atom name for the given integer error code, or nil if unknown.
@spec no_non_moderator_tags() :: 40066
No non-moderator tags available (40066).
@spec no_permission_to_send_sticker() :: 50600
No permission to send sticker (50600).
@spec no_provisional_account_permission() :: 530_000
No permission to use provisional accounts (530000).
@spec no_users_with_tag() :: 80004
No users with DiscordTag exist (80004).
@spec not_authorized_for_application() :: 20012
Not authorized for application (20012).
@spec note_too_long() :: 50015
Note too long (50015).
@spec oauth2_limit_reached() :: 50011
OAuth2 application limit reached (50011).
@spec oauth2_no_bot() :: 50010
OAuth2 application does not have a bot (50010).
@spec only_bots_can_use() :: 20002
Only bots can use this endpoint (20002).
@spec only_consumable_skus() :: 40018
Only consumable SKUs can be consumed (40018).
@spec only_owner() :: 20018
Only the owner can perform this action (20018).
@spec only_sandbox_entitlements() :: 40019
Only sandbox entitlements can be deleted (40019).
@spec operation_on_archived_thread() :: 50083
Operation on archived thread (50083).
@spec owner_cannot_be_pending() :: 50131
Owner cannot be pending member (50131).
@spec payment_source_required() :: 50070
Payment source required to redeem gift (50070).
@spec pin_wrong_channel() :: 50019
Message pinned to wrong channel (50019).
@spec poll_expired() :: 520_001
Poll expired (520001).
@spec poll_voting_blocked() :: 520_000
Poll voting blocked (520000).
@spec reaction_blocked() :: 90001
Reaction was blocked (90001).
@spec request_entity_too_large() :: 40005
Request entity too large (40005).
@spec send_messages_temporarily_disabled() :: 40004
Send messages temporarily disabled (40004).
@spec server_not_available_in_location() :: 50095
Server not available in location (50095).
@spec server_write_rate_limit() :: 20029
Server write rate limit (20029).
@spec service_resource_rate_limited() :: 40062
Service resource is being rate limited (40062).
@spec slowmode_rate_limit() :: 20016
Slowmode rate limit (20016).
@spec stage_already_open() :: 150_006
Stage is already open (150006).
@spec sticker_invalid_frame_rate() :: 170_006
Sticker frame rate invalid (170006).
@spec sticker_max_animation_duration() :: 170_007
Sticker animation duration exceeds maximum (170007).
@spec sticker_max_frame_count() :: 170_004
Sticker frame count exceeds maximum (170004).
@spec sticker_max_framerate_exceeded() :: 170_003
Sticker maximum framerate exceeded (170003).
@spec tag_names_must_be_unique() :: 40061
Tag names must be unique (40061).
@spec tag_required_for_forum_post() :: 40067
Tag required for forum post (40067).
@spec target_user_not_connected() :: 40032
Target user not connected to voice (40032).
@spec thread_already_created_for_message() :: 160_004
Thread already created for this message (160004).
@spec thread_locked() :: 160_005
Thread is locked (160005).
@spec title_blocked_by_automod() :: 200_001
Title blocked by automatic moderation (200001).
@spec two_factor_required() :: 60003
Two-factor authentication required (60003).
@spec unauthorized() :: 40001
Unauthorized (40001).
@spec under_minimum_age() :: 20024
Under minimum age (20024).
@spec unknown_account() :: 10001
Unknown account (10001).
@spec unknown_application() :: 10002
Unknown application (10002).
@spec unknown_application_command() :: 10063
Unknown application command (10063).
@spec unknown_application_command_permissions() :: 10066
Unknown application command permissions (10066).
@spec unknown_asset() :: 10021
Unknown asset (10021).
@spec unknown_ban() :: 10026
Unknown ban (10026).
@spec unknown_branch() :: 10032
Unknown branch (10032).
@spec unknown_build() :: 10030
Unknown build (10030).
@spec unknown_channel() :: 10003
Unknown channel (10003).
@spec unknown_discoverable_server_category() :: 10059
Unknown discoverable server category (10059).
@spec unknown_emoji() :: 10014
Unknown emoji (10014).
@spec unknown_entitlement() :: 10029
Unknown entitlement (10029).
@spec unknown_gift_code() :: 10038
Unknown gift code (10038).
@spec unknown_guild() :: 10004
Unknown guild (10004).
@spec unknown_guild_member_verification_form() :: 10068
Unknown Guild Member Verification Form (10068).
@spec unknown_guild_scheduled_event() :: 10070
Unknown Guild Scheduled Event (10070).
@spec unknown_guild_scheduled_event_user() :: 10071
Unknown Guild Scheduled Event User (10071).
@spec unknown_guild_template() :: 10057
Unknown guild template (10057).
@spec unknown_guild_welcome_screen() :: 10069
Unknown Guild Welcome Screen (10069).
@spec unknown_integration() :: 10005
Unknown integration (10005).
@spec unknown_interaction() :: 10062
Unknown interaction (10062).
@spec unknown_invite() :: 10006
Unknown invite (10006).
@spec unknown_invite_target_users() :: 10129
Unknown invite target users (10129).
@spec unknown_invite_target_users_job() :: 10124
Unknown invite target users job (10124).
@spec unknown_lobby() :: 10031
Unknown lobby (10031).
@spec unknown_member() :: 10007
Unknown member (10007).
@spec unknown_message() :: 10008
Unknown message (10008).
@spec unknown_permission_overwrite() :: 10009
Unknown permission overwrite (10009).
@spec unknown_provider() :: 10010
Unknown provider (10010).
@spec unknown_redistributable() :: 10036
Unknown redistributable (10036).
@spec unknown_role() :: 10011
Unknown role (10011).
@spec unknown_session() :: 10020
Unknown session (10020).
@spec unknown_sku() :: 10027
Unknown SKU (10027).
@spec unknown_sound() :: 10097
Unknown sound (10097).
@spec unknown_stage_instance() :: 10067
Unknown Stage Instance (10067).
@spec unknown_sticker() :: 10060
Unknown sticker (10060).
@spec unknown_sticker_pack() :: 10061
Unknown sticker pack (10061).
@spec unknown_store_directory_layout() :: 10033
Unknown store directory layout (10033).
@spec unknown_store_listing() :: 10028
Unknown Store Listing (10028).
@spec unknown_stream() :: 10049
Unknown stream (10049).
@spec unknown_tag() :: 10087
Unknown Tag (10087).
@spec unknown_token() :: 10012
Unknown token (10012).
@spec unknown_user() :: 10013
Unknown user (10013).
@spec unknown_voice_state() :: 10065
Unknown voice state (10065).
@spec unknown_webhook() :: 10015
Unknown webhook (10015).
@spec unknown_webhook_service() :: 10016
Unknown webhook service (10016).
@spec uploaded_file_not_found() :: 50146
Uploaded file not found (50146).
@spec user_account_must_be_verified() :: 50178
User account must be verified (50178).
@spec user_banned() :: 40007
User is banned from guild (40007).
@spec verify_account() :: 40002
Account verification required (40002).
@spec voice_messages_cannot_be_edited() :: 50162
Voice messages cannot be edited (50162).
@spec voice_messages_must_have_metadata() :: 50161
Voice messages must have supporting metadata (50161).
@spec voice_messages_no_additional_content() :: 50159
Voice messages do not support additional content (50159).
@spec voice_messages_single_audio() :: 50160
Voice messages must have a single audio attachment (50160).
@spec webhook_forum_both_thread_fields() :: 220_002
Webhook forum post cannot have both thread_name and thread_id (220002).
@spec webhook_forum_requires_thread() :: 220_001
Webhook forum post requires thread_name or thread_id (220001).
@spec webhook_services_cannot_use_forum() :: 220_004
Webhook services cannot be used in forum channels (220004).
@spec webhooks_can_only_create_forum_threads() :: 220_003
Webhooks can only create threads in forum channels (220003).