commands_create_global
Create or update a global Discord application command. Posting the same name and type updates the existing command, with changes propagating within about an hour.
Instructions
Purpose: Create or upsert a global application command. Global commands propagate within ~1 hour.
Body: standard command shape - name is required. description is required for CHAT_INPUT (type=1) but optional for USER (2) / MESSAGE (3) commands.
Idempotent: posting the same name+type updates the existing command (Discord upsert semantics).
Returns: {id, name, description, type, application_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| nsfw | No | ||
| type | No | ||
| handler | No | ||
| options | No | ||
| contexts | No | ||
| description | No | ||
| dm_permission | No | ||
| application_id | Yes | Bot/app application ID | |
| integration_types | No | ||
| default_permission | No | ||
| name_localizations | No | ||
| description_localizations | No | ||
| default_member_permissions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||