home / skills / lycfyi / community-agent-plugin / discord-list
This skill lists your available Discord servers, channels, and DMs, helping you discover access and IDs efficiently.
npx playbooks add skill lycfyi/community-agent-plugin --skill discord-listReview the files below or copy the command above to add this skill to your agents.
---
name: discord-list
description: "List Discord servers and channels. Use when user asks about available servers, channels, or wants to discover what's accessible."
---
# Discord List
Lists Discord servers, channels, and DMs accessible with your user token.
## When to Use
- User asks "what Discord servers do I have?"
- User asks "what channels are in [server]?"
- User wants to "list my Discord servers"
- User wants to "show me Discord channels"
- User needs to find server or channel IDs
- User asks "list my Discord DMs"
- User wants to find DM channel IDs
## How to Execute
### List all servers (includes DMs by default):
```bash
python ${CLAUDE_PLUGIN_ROOT}/tools/discord_list.py --servers
```
### List servers only (exclude DMs):
```bash
python ${CLAUDE_PLUGIN_ROOT}/tools/discord_list.py --servers --no-dms
```
### List channels in a specific server:
```bash
python ${CLAUDE_PLUGIN_ROOT}/tools/discord_list.py --channels SERVER_ID
```
Replace `SERVER_ID` with the actual Discord server ID.
### List DMs only:
```bash
python ${CLAUDE_PLUGIN_ROOT}/tools/discord_list.py --dms
```
## Output
Returns a formatted table of:
- **Servers**: ID, name, member count
- **Channels**: ID, name, category
- **DMs**: Channel ID, User ID, Username, Display Name
## Prerequisites
- `./.env` file with `DISCORD_USER_TOKEN` set (in cwd)
- Network access to Discord
## Next Steps
After listing channels, suggest syncing messages with discord-sync skill.
This skill lists Discord servers, channels, and direct messages that are accessible with your user token. It helps you discover available servers, inspect which channels exist in a server, and retrieve IDs needed for automation or syncing. Use it when you need a concise inventory of your Discord access.
The skill runs as a simple CLI tool that queries Discord using the provided user token and enumerates guilds (servers), channels, and DM channels. It supports flags to show servers, channels for a specific server, or DMs only. The output is a formatted table containing IDs, names, and relevant metadata for easy copy-paste into other tools.
What credentials are required to run the tool?
A valid Discord user token set in a .env file (DISCORD_USER_TOKEN) in the working directory is required.
Can I list channels for a specific server only?
Yes — the tool accepts a server ID argument to list channels for that server.
Will the tool expose private messages?
It lists DM channel IDs and associated user metadata accessible by the token; keep output and token secure.