commands_list_global
commands_list_global
Section titled “commands_list_global”Category: commands
List globally-registered application commands.
When to use
Section titled “When to use”audit global slash commands; before bulk-overwriting global registry.
When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
application_id | string | yes | Bot/app application ID |
with_localizations | boolean | no | Include name_localizations / description_localizations objects in the response |
Returns
Section titled “Returns”\{commands:[\{id, name, description, type\}], count, untrusted_text\} — names/descriptions are app-author authored, wrapped untrusted.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
commands | array | yes | |
count | number | yes | |
untrusted_text | string | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |