Discord
Build AI agent bots for Discord — send messages, read channels, list servers, and reply in threads.Requires the
discord.js peer dependency.Quick Start
Config
Discord bot token. Falls back to
DISCORD_BOT_TOKEN env var.Tools
| Tool | Description |
|---|---|
discord_send_message | Send a message to a channel. |
discord_read_messages | Read recent messages from a channel (up to 100). |
discord_list_channels | List text channels in a server (guild). |
discord_reply_thread | Reply to a specific message in a channel or thread. |
Peer Dependency
Bot Setup
- Go to the Discord Developer Portal
- Create a new application and add a bot
- Enable Message Content Intent under Privileged Gateway Intents
- Copy the bot token and set it as
DISCORD_BOT_TOKEN - Invite the bot to your server with the
botscope andSend Messages,Read Message Historypermissions
Environment Variables
| Variable | Description |
|---|---|
DISCORD_BOT_TOKEN | Discord bot token |