Register app command
register_app_commandCreate or update a Discord slash command by name, with options and user-facing descriptions. Target a guild for immediate availability; global commands can take up to an hour to appear and are rate limited.
Instructions
Register a slash command, or update it in place if the name is already taken. Pass a guild while iterating: guild commands appear immediately, while global commands can take up to an hour to show up everywhere and are rate limited per day. Subcommands and subcommand groups are not supported here.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"description": "<description>"
},
"name": "register_app_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | Which bot to act as, by name, when more than one is configured. Omit to use the default bot, or with a server, the bot that handles it. | |
| name | Yes | Command name without the slash, lowercase, no spaces. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| options | No | Arguments the command takes. | |
| description | Yes | Shown to users in the command picker. |