commands_get_global
commands_get_global
Section titled “commands_get_global”Category: commands
Fetch one global application command by id.
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 (snowflake) |
Returns
Section titled “Returns”\{id, name, description, type, application_id, untrusted_text\} — name/description wrapped untrusted.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
application_id | string | yes | |
name | string | yes | |
description | string | yes | |
type | integer | yes | |
untrusted_text | string | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |