Discord Bot: List Channels logo

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

FieldValue
Action IDdiscord-bot-list-channels
CategoryIntegrations
Connectorpipedream:discord
Requires gasNo
Funds movementNone declared
Tagspipedream, integration, oauth, discord, community, read, list

Payload Schema

FieldTypeRequiredDescription
guildIdstringNoDiscord server (guild) ID. When omitted, returns the list of servers the bot has been added to instead of channels.

Result Schema

FieldTypeRequiredDescription
successbooleanYesWhether the channels were listed successfully
dataobjectNoDiscord API response containing channel list
exportsobjectNoExported values from the action

Examples

json
{ "type": "discord-bot-list-channels", "payload": { "guildId": "example-guildId" }, "children": [], "connector": { "type": "pipedream:discord", "id": "conn_pipedream_discord" }}

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.

Ask a question... ⌘I