Register app command
register_app_commandCreate or update Discord slash commands, defining name, description, options, and guild scope. Guild changes apply immediately, global commands up to an hour.
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.
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. | |
| 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. |