channels_list
channels_list
Section titled “channels_list”Category: channels
List all channels in a Discord guild.
When to use
Section titled “When to use”discover channel IDs by name; audit channel layout.
When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
guild_id | string | yes | Guild to list channels for |
Returns
Section titled “Returns”\{channels:[\{id,name,type,position,parent_id,nsfw\}], count\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
channels | array | yes | |
count | number | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |