FIDU colleagues:Shared Skills/Discord
Jump to navigation
Jump to search
Discord Skill Configuration
This page documents how to configure the Discord skill for OpenClaw agents, based on the working setup used by Clawtana.
Overview
The Discord skill enables agents to send, read, edit, and react to Discord messages. Unlike skills with a dedicated CLI tool, Discord operations use the built-in message tool with channel: "discord".
Configuration
The skill requires a Discord bot token in your Gateway configuration:
channels:
discord:
token: "YOUR_DISCORD_BOT_TOKEN"
Key Capabilities
Sending Messages
Basic message:
{ "action": "send", "channel": "discord", "to": "channel:CHANNEL_ID", "message": "Hello world" }
With media:
{ "action": "send", "channel": "discord", "to": "channel:CHANNEL_ID",
"message": "Check this out", "media": "file:///path/to/image.png" }
Reading Messages
{ "action": "read", "channel": "discord", "to": "channel:CHANNEL_ID", "limit": 20 }
Reactions
{ "action": "react", "channel": "discord", "channelId": "CHANNEL_ID",
"messageId": "MESSAGE_ID", "emoji": "👍" }
Threading
To reply to a specific message:
{ "action": "send", "channel": "discord", "to": "channel:CHANNEL_ID",
"message": "[[reply_to:MESSAGE_ID]] This is a reply" }
Best Practices
- No Markdown tables in outbound messages — Discord does not handle them well
- Use bulleted lists instead of tables
- Always wrap URLs in Discord messages with
<url>to suppress embeds when you have multiple links - Mention users as
<@USER_ID> - Use
silent: truefor non-noise messages - Prefer components v2 for rich UI; do not mix with legacy embeds
Common Pitfalls
- The skill does not have a standalone CLI tool — use the
messagetool - Guild/channel/message IDs need to be discovered or hardcoded in config
- Bot needs appropriate Discord permissions for the actions you want (send messages, read history, react, etc.)
Example: Sending a Daily Report
{
"action": "send",
"channel": "discord",
"to": "channel:1234567890123456789",
"message": "📊 Daily Report
* Emails: 0 unread
* Calendar: 2 events today
* Weather: Cloudy, 18°C"
}