Discord Bot: List Channels
List all channels in a Discord server. Returns channel IDs, names, and types. Use this to discover channel IDs for the Send Message action.
Catalog action Integrations pipedream:discord
List all channels in a Discord server. Returns channel IDs, names, and types. Use this to discover channel IDs for the Send Message action.
At a Glance
| Field | Value |
|---|---|
| Action ID | discord-bot-list-channels |
| Category | Integrations |
| Connector | pipedream:discord |
| Requires gas | No |
| Funds movement | None declared |
| Tags | pipedream, integration, oauth, discord, community, read, list |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
guildId | string | No | Discord server (guild) ID. When omitted, returns the list of servers the bot has been added to instead of channels. |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Yes | Whether the channels were listed successfully |
data | object | No | Discord API response containing channel list |
exports | object | No | Exported values from the action |
Examples
json{ "type": "discord-bot-list-channels", "payload": { "guildId": "example-guildId" }, "children": [], "connector": { "type": "pipedream:discord", "id": "conn_pipedream_discord" }}
bashcurl -X POST "https://api.b3os.org/v1/actions/discord-bot-list-channels/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "guildId": "example-guildId" }}'
Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.
