Skip to content

Commit

Permalink
Update character limit for slash commands (#6668)
Browse files Browse the repository at this point in the history
* Update Application_Commands.md

* Fix command limit

---------

Co-authored-by: Dominik K <[email protected]>
  • Loading branch information
AlmostSuspense and mezotv authored Feb 20, 2024
1 parent 7c67ca1 commit c6b0575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Starting in API v8, we've improved error formatting in form error responses. The
"_errors": [
{
"code": "APPLICATION_COMMAND_TOO_LARGE",
"message": "Command exceeds maximum size (4000)"
"message": "Command exceeds maximum size (8000)"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/interactions/Application_Commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Slash commands—the `CHAT_INPUT` type—are a type of application command. They
Slash commands can also have groups and subcommands to further organize commands. More on those later.

> warn
> Slash commands can have a maximum of 4000 characters for combined name, description, and value properties for each command, its options (including subcommands and groups), and choices. When [localization fields](#DOCS_INTERACTIONS_APPLICATION_COMMANDS/localization) are present, only the longest localization for each field (including the default value) is counted towards the size limit.
> Slash commands can have a maximum of 8000 characters for combined name, description, and value properties for each command, its options (including subcommands and groups), and choices. When [localization fields](#DOCS_INTERACTIONS_APPLICATION_COMMANDS/localization) are present, only the longest localization for each field (including the default value) is counted towards the size limit.

###### Example Slash Command
Expand Down

0 comments on commit c6b0575

Please sign in to comment.