Discord
Setup
- Go to the Discord Developer Portal
- Create a new application
- Go to Bot → click Add Bot
- Copy the bot token
- Under Privileged Gateway Intents, enable Message Content Intent
- Go to OAuth2 → URL Generator, select
botscope withSend MessagesandRead Message Historypermissions - Use the generated URL to invite the bot to your server
Configuration
{
"channels": {
"discord": {
"enabled": true,
"token": "YOUR_BOT_TOKEN",
"allowFrom": ["YOUR_USER_ID"],
"allowGuilds": [],
"allowChannels": [],
"requireMentionInGuilds": true,
"maxAttachmentMb": 20,
"typingIndicator": true
}
}
}Fields
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Enable the Discord channel |
token | string | Bot token from Developer Portal | |
allowFrom | array | [] | User IDs or usernames allowed to interact |
allowGuilds | array | [] | Server (guild) IDs allowed |
allowChannels | array | [] | Channel IDs allowed |
requireMentionInGuilds | bool | true | Only respond in servers when @mentioned or replied to |
maxAttachmentMb | number | 20 | Max attachment size to download (MB) |
typingIndicator | bool | true | Show “typing…” while processing |
Getting your user ID
Enable Developer Mode in Discord (Settings → Advanced → Developer Mode), then right-click your name and click Copy User ID.
Guild behavior
With requireMentionInGuilds: true (default), the bot only responds in servers when you @mention it or reply to one of its messages. In DMs, it always responds.
Set to false if you want the bot to respond to every message in allowed channels.