Discord

Setup

  1. Go to the Discord Developer Portal
  2. Create a new application
  3. Go to Bot → click Add Bot
  4. Copy the bot token
  5. Under Privileged Gateway Intents, enable Message Content Intent
  6. Go to OAuth2URL Generator, select bot scope with Send Messages and Read Message History permissions
  7. 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

FieldTypeDefaultDescription
enabledboolfalseEnable the Discord channel
tokenstringBot token from Developer Portal
allowFromarray[]User IDs or usernames allowed to interact
allowGuildsarray[]Server (guild) IDs allowed
allowChannelsarray[]Channel IDs allowed
requireMentionInGuildsbooltrueOnly respond in servers when @mentioned or replied to
maxAttachmentMbnumber20Max attachment size to download (MB)
typingIndicatorbooltrueShow “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.