Skip to content
Commands

Guide — Discord command limits

Discord checks every slash command you publish. A command that breaks one of the rules below is refused as a whole, and nothing of it appears on your server. Bot Creator shows these limits while you edit, and the same check runs when the Copilot or the MCP writes a command.

The limits at a glance

Rule Limit
Total size of one slash command 8000 characters
Name of a command, group, sub-command or option 1 to 32 characters
Description of a command, group, sub-command or option 1 to 100 characters
Options in a command or a sub-command 25
Sub-commands and groups in a command or a group 25
Nesting command, then group, then sub-command (3 levels)
Choices in one option 25
Name of a choice 1 to 100 characters
Text value of a choice 1 to 100 characters
Slash commands published per scope 100 globally, and 100 more in each server
Context menu commands (User, Message) 15 of each type per scope

Names are lowercase and use letters, digits, - and _ only. The apostrophe of the keyboard (') is refused by Discord; the typographic one (ʼ) is accepted.

The 8000 characters

Discord adds up, for one slash command and everything inside it:

  • the name and the description of the command;
  • the name and the description of every group, sub-command and option;
  • the name and the value of every choice.

The total must not exceed 8000 characters. A command with a few options is far below that. The limit is reached by commands that hold many sub-commands, or options with long lists of choices. A configuration command with one group per feature is the usual case.

Translations

If you translate a command (name, description, choices), Discord does not add up every language. For each field it keeps the longest of the texts, the default one included. Ten languages of a 30-character description count 30 characters, plus the difference if one translation is longer than the default text.

Translations therefore weigh little, but a translation longer than the original text makes the command bigger. Bot Creator shows that part separately as Translations.

If your command is too big

  • Move long lists of choices to autocomplete: the choices are no longer part of the command.
  • Shorten descriptions. Each one counts once for the command and once more for its translations when they are longer.
  • Split the command in two (/shop and /bank instead of /config shop and /config bank).
  • Remove options nobody uses.

Limits of the response

A command also answers with a message, and Discord refuses a message that is too long: the whole message fails and the person sees “The application did not respond” or nothing.

Rule Limit
Text of a message 2000 characters
Embeds in one message 10
Embed title 256
Embed description 4096
Fields in one embed 25
Field name / field value 256 / 1024
Embed footer text 2048
Embed author name 256
Total of all the embeds of one message (title, description, fields, footer, author) 6000
Button label 80
Options in a select menu 25
Option label of a select menu 100
Components V2: text of all the text blocks of one message 4000
Components V2: components in one message (nested ones count) 40

A Components V2 message has no text and no embed of its own: everything goes through components.

Static and dynamic text

Bot Creator measures what the command will send, before it is sent. A text you typed is counted exactly. A variable of known size, such as the name of the person (32 characters at most), is counted at its largest size and the result is marked estimated. A part whose size depends on your data, such as ((modules.list)), a stored variable, an API answer or an AI reply, cannot be counted: Bot Creator counts the fixed part and shows it as 412 + ?, marked depends on data.

  • If the fixed part alone is already over the limit, the message will always fail: Bot Creator tells you it will be refused.
  • If the fixed part is close to the limit (80 % or more), or if a dynamic part is added to a text that is already long, Bot Creator warns you that the message may exceed it.
  • A command written in JavaScript cannot be measured before it runs.

Order of options

Required options must come before optional ones, at every level. A required option placed after an optional one makes Discord refuse the command. Sub-commands and groups are not options in this rule.

How Bot Creator shows it

  • Editor (app and Studio). A meter reads used / 8000 with the share of names and descriptions, options, choices and translations, and the largest sub-commands. It is green under 80 %, orange from 80 % to 100 %, red above.
  • Before publishing. A command over 8000 characters cannot be published; the editor tells you before you try.
  • If Discord refuses anyway. The message of Discord is shown as is, with the size Bot Creator computed, and a link to this page. The command stays saved; it is just not published.
  • Response size. The Response tab of the command settings lists each field of the message with its limit, and tells whether the figure is exact, estimated or depends on data.
  • Copilot and MCP. validate and save_command return E_COMMAND_TOO_LARGE with the size, the limit, the breakdown and the largest parts, and warn from 80 %. For the response they return the warnings W_RESPONSE_EXCEEDS (the fixed part is over the limit) and W_RESPONSE_MAY_EXCEED (it depends on data or is close to the limit); these never block a save.