Back to README
Discord
Discord is a free voice, video, and text chat application designed for communities. PicoClaw connects to Discord servers via the Discord Bot API, supporting both receiving and sending messages.
Configuration
{
"agents": {
"defaults": {
"tool_feedback": {
"enabled": true,
"max_args_length": 300
}
}
},
"channel_list": {
"discord": {
"enabled": true,
"type": "discord",
"token": "YOUR_BOT_TOKEN",
"allow_from": ["YOUR_USER_ID"],
"commands_enabled": true,
"placeholder": {
"enabled": true,
"text": ["Thinking... 💭"]
},
"group_trigger": {
"mention_only": false
},
"reasoning_channel_id": "",
"settings": {
"proxy": "",
"allow_dm": true
}
}
}
}
| Field | Type | Required | Description |
|---|---|---|---|
| enabled | bool | Yes | Whether to enable the Discord channel |
| token | string | Yes | Discord Bot Token |
| allow_from | array | No | Allowlist of user IDs; empty means all users are allowed |
| commands_enabled | bool | No | Whether slash commands are enabled on this channel; set to false to clear the Discord command menu and reject all slash commands. Defaults to true |
| placeholder | object | No | Placeholder message config shown while the agent is working |
| group_trigger | object | No | Group trigger settings (example: { "mention_only": false }) |
| reasoning_channel_id | string | No | Optional target channel ID for reasoning/thinking output |
| proxy | string | No | HTTP/SOCKS5 proxy URL for the Discord connection (e.g. http://127.0.0.1:7890). Env: PICOCLAW_CHANNELS_DISCORD_PROXY |
| allow_dm | bool | No | Whether the bot accepts direct messages and DM slash commands. Defaults to true. Env: PICOCLAW_CHANNELS_DISCORD_ALLOW_DM |
Set allow_dm to false to make the bot ignore direct messages and DM interactions while continuing to handle mentions in guild channels.
Set commands_enabled to false to clear the Discord slash command menu at startup and make the agent reject all slash commands. The setting applies to the whole Discord integration, not to an individual guild or text channel.
Visible Execution Feedback
Discord can show three different kinds of "working" feedback:
- Typing indicator: automatic, no extra config needed.
- Placeholder message: enable
channel_list.discord.placeholder.enabledto send a visibleThinking...message that is later edited into the final reply. - Tool execution feedback: enable
agents.defaults.tool_feedback.enabledto send a short message before each tool call, for example:
🔧 `web_search`
Checking the latest PicoClaw release notes before I answer.
If you only see Bot is typing, check that placeholder.enabled or tool_feedback.enabled is actually set in your runtime config.
Setup
- Go to the Discord Developer Portal and create a new application
- Enable Intents:
- Message Content Intent
- Server Members Intent
- Obtain the Bot Token
- Fill in the Bot Token in the configuration file
- Invite the bot to your server and grant the necessary permissions (e.g. Send Messages, Read Message History)