> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

![Discord Bot: List Channels logo](https://ai-icon.b3.fun/logo/discord)
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

**Workflow node**

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

```bash
curl -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"
  }
}'
```

**Use expressions for dynamic values**

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.