commands_list_guild
commands_list_guild
Section titled “commands_list_guild”Category: commands
List slash commands registered for a specific guild.
When to use
Section titled “When to use”audit which commands are registered; before bulk-overwriting.
When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
application_id | string | yes | Bot/app application ID |
guild_id | string | yes | Guild scope |
Returns
Section titled “Returns”\{commands:[\{id, name, description, type\}], count\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
commands | array | yes | |
count | number | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |