API reference
Error codes
The code in an error answer. Discord’s numbers where Discord has one.
An error answer is JSON: {"code": 50013, "message": "Missing Permissions"}, with errors naming the fields of a rejected body. How to handle them is on the Errors page.
GENERAL0 · discord- General.
UNKNOWN_ACCOUNT10001 · discord- Unknown Account.
UNKNOWN_APPLICATION10002 · discord- Unknown Application. "Unknown application". An authorize request for an app tether does not know.
UNKNOWN_CHANNEL10003 · discord- Unknown Channel.
UNKNOWN_GUILD10004 · discord- Unknown Guild.
UNKNOWN_INVITE10006 · discord- Unknown Invite.
UNKNOWN_MEMBER10007 · discord- Unknown Member.
UNKNOWN_MESSAGE10008 · discord- Unknown Message.
UNKNOWN_OVERWRITE10009 · discord- Unknown Overwrite.
UNKNOWN_ROLE10011 · discord- Unknown Role.
UNKNOWN_TOKEN10012 · discord- Unknown Token.
UNKNOWN_USER10013 · discord- Unknown User.
UNKNOWN_EMOJI10014 · discord- Unknown Emoji.
UNKNOWN_STICKER10060 · discord- Unknown Sticker. "Unknown sticker".
UNKNOWN_GUILD_SCHEDULED_EVENT10070 · discord- Unknown Guild Scheduled Event. "Unknown Guild Scheduled Event".
UNKNOWN_GUILD_SCHEDULED_EVENT_USER10071 · discord- Unknown Guild Scheduled Event User. "Unknown Guild Scheduled Event User" (the person is not interested).
UNKNOWN_SESSION10020 · discord- Unknown Session.
UNKNOWN_BAN10026 · discord- Unknown Ban.
UNKNOWN_INTERACTION10062 · discord- Unknown Interaction. "Unknown interaction".
POST /interactionsfor a button or menu that no built-in handler owns (or that the message no longer has). HTTP 400 here. INTERACTION_ALREADY_ACKNOWLEDGED40060 · discord- Interaction Already Acknowledged. The interaction was already answered (HTTP 400).
UNKNOWN_APPLICATION_COMMAND10063 · discord- Unknown Application Command. "Unknown application command":
POST /interactionstype 2 for a command that isn't there. BOTS_CANNOT_USE_ENDPOINT20001 · discord- Bots Cannot Use Endpoint.
SLOWMODE_RATE_LIMIT20016 · discord- Slowmode Rate Limit. Sending in a channel with slow mode before the wait is over (HTTP 429, with
retry_after). ONLY_BOTS_CAN_USE_ENDPOINT20002 · discord- Only Bots Can Use Endpoint.
MAX_GUILDS30001 · discord- Max Guilds.
MAX_ROLES30005 · discord- Max Roles.
MAX_PINS30003 · discord- Max Pins. Pinning in a channel that already has
Limits.MAX_PINSpins. MAX_EMOJIS30008 · discord- Max Emojis.
MAXIMUM_STICKERS30039 · discord- Maximum Stickers. "Maximum number of stickers reached" (
Limits.MAX_STICKERS_PER_GUILD). MAX_REACTIONS30010 · discord- Max Reactions.
MAX_CHANNELS30013 · discord- Max Channels.
MAX_APPLICATION_COMMANDS30032 · discord- Max Application Commands. "Maximum number of application commands reached" (100 / commands, 15 of each menu type, per scope).
THREAD_ARCHIVED50083 · discord- Thread Archived. "Tried to perform an operation on an archived thread, such as editing a message or adding a user to the thread".
CANNOT_UPDATE_FINISHED_EVENT180000 · tether- Cannot Update Finished Event. "Cannot update a finished event" (an event that is completed or canceled).
THREAD_ALREADY_CREATED160004 · tether- Thread Already Created. "A thread has already been created for this message".
THREAD_LOCKED160005 · tether- Thread Locked. "Thread is locked".
MAX_ACTIVE_THREADS160006 · tether- Max Active Threads. "Maximum number of active threads reached".
UNAUTHORIZED40001 · discord- Unauthorized.
REQUEST_ENTITY_TOO_LARGE40005 · discord- Request Entity Too Large. The request (all its files together, or one file) is bigger than the limit; HTTP 413.
UNVERIFIED_ACCOUNT40002 · discord- Unverified Account. "You need to verify your account in order to perform this action." (HTTP 403).
MFA_REQUIRED60003 · discord- Mfa Required. "Two factor is required for this operation" (HTTP 403). Staff tools need two-factor sign-in on.
INVALID_TWO_FACTOR_TICKET60006 · discord- Invalid Two Factor Ticket. The ticket from the password step is wrong, used up or too old (HTTP 400).
INVALID_TWO_FACTOR_CODE60008 · discord- Invalid Two Factor Code. The authenticator or backup code is wrong (HTTP 400).
USER_BANNED40007 · discord- User Banned.
TARGET_USER_NOT_CONNECTED_TO_VOICE40032 · discord- Target User Not Connected To Voice. Voice moderation (move/disconnect) on a member who is not in a voice channel.
MISSING_ACCESS50001 · discord- Missing Access.
CANNOT_EXECUTE_ON_DM50003 · discord- Cannot Execute On Dm.
CANNOT_EDIT_OTHERS_MESSAGE50005 · discord- Cannot Edit Others Message.
CANNOT_SEND_MESSAGES_TO_THIS_USER50007 · discord- Cannot Send Messages To This User. The recipient can't be messaged (blocked, or they only take messages from friends).
CANNOT_SEND_EMPTY_MESSAGE50006 · discord- Cannot Send Empty Message.
CANNOT_SEND_IN_NON_TEXT_CHANNEL50008 · discord- Cannot Send In Non Text Channel.
CANNOT_EXECUTE_ON_CHANNEL_TYPE50024 · discord- Cannot Execute On Channel Type. E.g. joining voice in a text channel.
CANNOT_EXECUTE_ON_SYSTEM_MESSAGE50021 · discord- Cannot Execute On System Message. Pinning, editing or replying to a system message ("X pinned a message").
MISSING_PERMISSIONS50013 · discord- Missing Permissions.
INVALID_ROLE50028 · discord- Invalid Role. Giving someone a bot's managed role, or deleting that role while the bot is in the server (HTTP 400).
POLL_EXPIRED520003 · tether- Poll Expired. Voting in a poll that has ended.
CANNOT_EDIT_A_POLL_MESSAGE520006 · tether- Cannot Edit A Poll Message. Changing the text of a message that carries a poll.
CANNOT_EXPIRE_A_NON_POLL_MESSAGE520009 · tether- Cannot Expire A Non Poll Message. Ending a message that has no poll.
AUTOMOD_MESSAGE_BLOCKED200000 · tether- Automod Message Blocked. "Message was blocked by automatic moderation" (HTTP 400). The body carries tether's
automod(APIAutoModBlockedError): the rule, its message only they see, what was caught. FILE_TOO_LARGE50045 · discord- File Too Large.
INVALID_ASSET50046 · discord- Invalid Asset.
INVALID_FORM_BODY50035 · discord- Invalid Form Body.
INVALID_JSON50109 · discord- Invalid Json.
FRIEND_REQUEST_BLOCKED80001 · discord- Friend Request Blocked. A friend request to someone who blocked you, or that you blocked.
NO_USERS_WITH_TAG_EXIST80004 · discord- No Users With Tag Exist. No user with that username (also what a blocked sender gets, so a block is not leaked).
BOTS_CANNOT_HAVE_RELATIONSHIPS90060 · tether- Bots Cannot Have Relationships. Bots can't have friends, blocked users or friend requests.
MAX_RELATIONSHIPS90061 · tether- Max Relationships. The account's friends, requests and blocks list is full.
NOT_GROUP_DM_OWNER90062 · tether- Not Group Dm Owner. Only the owner of a group DM can add or remove people.
GROUP_DM_FULL90063 · tether- Group Dm Full. The group DM is full.
CSRF_CHECK_FAILED90001 · tether- Csrf Check Failed.
REGISTRATION_DISABLED90002 · tether- Registration Disabled. The instance has registration turned off.
RATE_LIMITED90003 · tether- Rate Limited. Rate limited (also returned with HTTP 429).
OWNER_CANNOT_LEAVE90020 · tether- Owner Cannot Leave. The guild owner tried to leave (transfer ownership or delete the guild instead).
MAX_BOTS90004 · tether- Max Bots. The account already owns the maximum number of bots.
UNSUPPORTED_FILE_TYPE90005 · tether- Unsupported File Type. The file's real type (sniffed from its bytes) is not allowed.
VOICE_DISABLED90030 · tether- Voice Disabled. This instance has no LiveKit server configured, so voice is off.
VOICE_CHANNEL_FULL90031 · tether- Voice Channel Full. The voice channel has reached its
user_limit. VOICE_NOT_CONNECTED90032 · tether- Voice Not Connected. You need to be connected to that voice channel (or DM call) for that (HTTP 403).
VOICE_E2EE_REQUIRED90033 · tether- Voice E2ee Required. This voice room is encrypted and the request carried no
e2ee_key(docs/voice.md "Encrypted calls"). VOICE_E2EE_BOTS90034 · tether- Voice E2ee Bots. Bots can't join an encrypted voice channel (they can't hold its keys).
VOICE_E2EE_FULL90035 · tether- Voice E2ee Full. An encrypted call holds at most 50 people.
VOICE_E2EE_ACTIVE90036 · tether- Voice E2ee Active. That isn't available in an encrypted call (a still of a screen share or camera, HTTP 403).
VOICE_HOST_CONSENT90037 · tether- Voice Host Consent. The room is hosted by someone else's computer and the joiner has not agreed to show them their IP address (op 4
voice_host_consent). VOICE_HOST_UNAVAILABLE90038 · tether- Voice Host Unavailable. Hosting is not possible for that voice channel right now (HTTP 403; never says why).
UNKNOWN_VOICE_HOST90039 · tether- Unknown Voice Host. The server has no voice server of its own set up (HTTP 404).
GIFS_DISABLED90050 · tether- Gifs Disabled. This instance has no GIF provider configured.
GIFS_UNAVAILABLE90051 · tether- Gifs Unavailable. The GIF provider didn't answer.
MAX_GIF_FAVORITES90052 · tether- Max Gif Favorites. The user already has the maximum number of favourite GIFs.
GIFS_DIRECT_MODE90053 · tether- Gifs Direct Mode. In direct mode clients search KLIPY themselves; the server's search routes are off (HTTP 404).
PUSH_DISABLED90070 · tether- Push Disabled. This instance has no VAPID keys configured, so push notifications are off (HTTP 503).
MAX_PUSH_SUBSCRIPTIONS90071 · tether- Max Push Subscriptions. The account already has
PUSH_MAX_SUBSCRIPTIONSregistered devices. UNKNOWN_PUSH_SUBSCRIPTION90072 · tether- Unknown Push Subscription. No push subscription of yours with that id (HTTP 404).
MAX_DEVICE_ACCOUNTS90100 · tether- Max Device Accounts. The device already has
Limits.MAX_DEVICE_ACCOUNTSaccounts signed in (HTTP 400). EMAIL_SEND_FAILED90080 · tether- Email Send Failed. The code email could not be sent (HTTP 503).
UNKNOWN_CONNECTION90110 · tether- Unknown Connection. No such kind of connection, or none of yours with that id (HTTP 404).
CANNOT_APPEAL90090 · tether- Cannot Appeal. This ban was made without "Can appeal" (HTTP 403).
APPEAL_ALREADY_SENT90091 · tether- Appeal Already Sent. The ban already has its one appeal (HTTP 400).
UNKNOWN_APPEAL90092 · tether- Unknown Appeal. No appeal for that person in this server (HTTP 404).
APPEAL_ALREADY_ANSWERED90093 · tether- Appeal Already Answered. The appeal was answered already (HTTP 400).
ROLE_TOO_POWERFUL90120 · tether- Role Too Powerful. A role the server would hand out by itself (roles on join, the rules role, join questions, role menus) carries a dangerous permission (HTTP 400). See
canServerGiveRole. MAX_ROLE_MENUS90130 · tether- Max Role Menus. The server already has
RoleMenuLimits.MENUSrole menus (HTTP 400). UNKNOWN_ROLE_MENU90131 · tether- Unknown Role Menu. No role menu with that id in this server (HTTP 404).
ALREADY_WAVED90132 · tether- Already Waved. You already waved at this welcome (HTTP 409).
SERVER_CODE_INVALID90140 · tether- Server Code Invalid. The server code has mistakes;
errorslists them by line (HTTP 400). SERVER_CODE_STALE90141 · tether- Server Code Stale. Someone changed the server since this code was loaded (HTTP 409).
SERVER_CODE_REFUSED90142 · tether- Server Code Refused. The code asks for changes the saver may not make; nothing was saved (HTTP 403).
SERVER_CODE_PARTIAL90143 · tether- Server Code Partial. A save stopped half-way;
appliedsays what was saved (HTTP 500, or the cause's status). UNKNOWN_DISCORD_IMPORT90150 · tether- Unknown Discord Import. No Discord import with that code, or it expired or was used (HTTP 404).
DISCORD_IMPORT_USED90151 · tether- Discord Import Used. This Discord import already made its server (HTTP 409).
UNKNOWN_AUTOMOD_RULE90160 · tether- Unknown Automod Rule. No auto-mod rule with that id (HTTP 404).
MAX_AUTOMOD_RULES90161 · tether- Max Automod Rules. The server has as many own auto-mod rules as it may (HTTP 400).
NEW_ACCOUNT_WAIT90162 · tether- New Account Wait. A new account waits before it can talk here (HTTP 403, with
retry_after). INVITES_PAUSED90163 · tether- Invites Paused. Raid protection paused this server's invites (HTTP 403, with
retry_after). CHANNEL_LOCKED90170 · tether- Channel Locked. A moderator locked the channel (HTTP 403).
UNKNOWN_MOD_CASE90171 · tether- Unknown Mod Case. No case with that id (HTTP 404).
UNKNOWN_TRIGGER90180 · tether- Unknown Trigger. No trigger with that id (HTTP 404).
MAX_TRIGGERS90181 · tether- Max Triggers. The server has as many triggers as it may (HTTP 400).
UNKNOWN_TRIGGER_STATE90182 · tether- Unknown Trigger State. No number or list with that name (HTTP 404).
LEVELS_DISABLED90190 · tether- Levels Disabled. Levels are off in this server (HTTP 403).
NOT_A_THEATRE90200 · tether- Not A Theatre. The channel is not a theatre (HTTP 400).
NO_THEATRE_SESSION90201 · tether- No Theatre Session. No film is playing in this theatre (HTTP 404).
THEATRE_BUSY90202 · tether- Theatre Busy. Someone else's film is already playing here (HTTP 409).
THEATRE_NOT_CONNECTED90203 · tether- Theatre Not Connected. You need to be in the theatre for that (HTTP 403).
THEATRE_REACTIONS_OFF90204 · tether- Theatre Reactions Off. Reactions are off for this film (HTTP 403).
BOT_DID_NOT_RESPOND90210 · tether- Bot Did Not Respond. The bot didn't answer an interaction within 3 seconds (HTTP 504).
INTERACTION_NOT_ACKNOWLEDGED90211 · tether- Interaction Not Acknowledged. A follow-up needs the interaction to have been answered first (HTTP 400).
NOT_A_PLAYER_BOT90212 · tether- Not A Player Bot. Only a bot its owner marked as a music bot (
player) may do that (HTTP 403). PLAYER_BOT_NOT_IN_CALL90213 · tether- Player Bot Not In Call. The bot has no voice connection in that channel (HTTP 400).
PLAYER_BUSY90214 · tether- Player Busy. Another bot already drives the player in that channel (HTTP 409).
PLAYER_DISABLED90215 · tether- Player Disabled. The player is switched off for that bot in this server (HTTP 403).
UNKNOWN_PLAYER90216 · tether- Unknown Player. No player there, or no such music bot in the server (HTTP 404).
PLAYER_NOT_IN_CALL90217 · tether- Player Not In Call. Controlling the player needs being in that voice channel's call (HTTP 403).
PLAYER_NOBODY_THERE90218 · tether- Player Nobody There. Nobody but bots is in that voice channel, so there is nobody to play to (HTTP 400).
BOT_NOT_PUBLIC90220 · tether- Bot Not Public. The bot is private; only the person who made it may add it to a server (HTTP 403).
BOT_ALREADY_IN_GUILD90221 · tether- Bot Already In Guild. The server already has as many bots as it may, or the bot is already in it (HTTP 400/409).
MFA_ALREADY_ENABLED90230 · tether- Mfa Already Enabled. Two-factor sign-in is already on (HTTP 400).
MFA_NOT_ENABLED90231 · tether- Mfa Not Enabled. Two-factor sign-in is not on (HTTP 400).
MFA_UNAVAILABLE90232 · tether- Mfa Unavailable. This server has no
MFA_ENCRYPTION_KEY, so two-factor sign-in is off (HTTP 503). UNDER_MINIMUM_AGE90233 · tether- Under Minimum Age. The birthday says under 13 (HTTP 400 as a
date_of_birthfield error; 403 onPUT /users/@me/birthday). Nothing is stored. BIRTHDAY_ALREADY_SET90234 · tether- Birthday Already Set. The account already has a birthday; it is asked for once (HTTP 409).
ACCOUNT_UNDER_MINIMUM_AGE90235 · tether- Account Under Minimum Age. The account is closed because the person said they are under 13 (HTTP 403).
ADULT_REQUIRED90236 · tether- Adult Required. Only an adult may mark a channel 18+ (HTTP 403).
BIRTHDAY_REQUIRED90237 · tether- Birthday Required. The account has no birthday yet; give it (
PUT /users/@me/birthday) before anything else (HTTP 403). ACCOUNT_OWNS_SERVERS90240 · tether- Account Owns Servers. The person still owns servers; give each to someone or delete it first (HTTP 400).
DATA_EXPORT_IN_PROGRESS90241 · tether- Data Export In Progress. A data export is already waiting or being built (HTTP 409).
DATA_EXPORT_LIMIT90242 · tether- Data Export Limit. One export a week; the answer carries
retry_after(HTTP 429). UNKNOWN_DATA_EXPORT90243 · tether- Unknown Data Export. There is no export to download (never asked for, not ready yet, or it expired) (HTTP 404).
ACCOUNT_DELETION_SCHEDULED90244 · tether- Account Deletion Scheduled. The account is already waiting to be deleted (HTTP 400).
ACCOUNT_DELETION_NOT_SCHEDULED90245 · tether- Account Deletion Not Scheduled. The account is not waiting to be deleted (HTTP 400).
ACCOUNT_IS_OWNER90246 · tether- Account Is Owner. A tether owner (an account listed in
TETHER_OWNERS, by id or by a username pinned to it) cannot delete their account while it is listed there (HTTP 400). ACCOUNT_RESTRICTED90250 · tether- Account Restricted. The account is suspended or banned, or the address is blocked (HTTP 403, on sign-in). The answer carries
restriction(what, until when, why, who to write to). CANNOT_CLOSE_TETHER_CHAT90251 · tether- Cannot Close Tether Chat. The conversation with tether itself can be muted but never closed (HTTP 403).
CANNOT_REPORT90252 · tether- Cannot Report. That cannot be reported (yourself, or tether's own system accounts) (HTTP 400).
UNKNOWN_REPORT90253 · tether- Unknown Report. There is no such report, or the person is not staff (HTTP 404 for the first).
REPORT_CLOSED90254 · tether- Report Closed. The report is already closed (HTTP 400).
IMAGE_REFUSED90255 · tether- Image Refused. The picture matched a list of known abuse material and was refused (HTTP 400).
LINK_BLOCKED90261 · tether- Link Blocked. Tether (in the spirit of 200000): the message has a link that is known to be harmful and was not sent (HTTP 400). The body has
blocked_message, the message as the sender sees it (not_sent: 'harmful_link'). Bots get the same answer. SENDING_PAUSED90262 · tether- Sending Paused. This account is paused from sending for a few minutes (HTTP 429 with
retry_after). MAX_SCHEDULED_EVENTS90260 · tether- Max Scheduled Events. The server has as many planned and going events as it may (
EventLimits.MAX_PER_GUILD). UNKNOWN_GAME_INVITE90270 · tether- Unknown Game Invite. No such game invite, or it is not yours (HTTP 404; docs/apps.md "grapple: invites").
GAME_INVITE_CLOSED90271 · tether- Game Invite Closed. The game invite is no longer open: expired, declined or cancelled (HTTP 400).