Delete app command
delete_app_commandUnregister a Discord slash command so it no longer appears to users, using a preview and confirm token to prevent accidental deletion.
Instructions
Unregister a slash command so it no longer appears for users. Safe to call directly: the first call changes nothing and returns a preview plus a confirm_token; repeating the call with the token removes it.
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": {
"command": "<command>"
},
"name": "delete_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. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| command | Yes | Command name or ID. | |
| dry_run | No | ||
| confirm_token | No | The token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree. |