commands_modify_global
commands_modify_global
Section titled “commands_modify_global”Category: commands
Edit a global application command. All command-body fields are optional — pass only what changes.
When to use
Section titled “When to use”When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
application_id | string | yes | Bot/app application ID |
command_id | string | yes | Command ID to modify |
name | string | no | |
name_localizations | unknown | no | |
description | string | no | |
description_localizations | unknown | no | |
options | array | no | |
default_member_permissions | unknown | no | |
dm_permission | unknown | no | |
default_permission | unknown | no | |
type | integer | no | |
nsfw | boolean | no | |
integration_types | array | no | |
contexts | array | no | |
handler | number | no |
Returns
Section titled “Returns”updated \{id, name, description, type, application_id\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
application_id | string | no | |
guild_id | unknown | no | |
name | string | yes | |
description | string | no | |
type | integer | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |