← ClaudeAtlas

discord-configurelisted

Configure the Discord channel — save bot token, set auto-thread, embed options.
0xMaxMa/claude-gateway · ★ 21 · AI & Automation · score 69
Install: claude install-skill 0xMaxMa/claude-gateway
# /gateway:discord-configure — Configure Discord Use this skill to set up the Discord channel for an agent. ## Required setup ### 1. Save the bot token ``` /gateway:discord-configure token <BOT_TOKEN> ``` Writes `DISCORD_BOT_TOKEN=<token>` to `$DISCORD_STATE_DIR/.env`. ### 2. Set required env vars in agent config Add to the agent's `.env` file: ``` DISCORD_BOT_TOKEN=<your-bot-token> DISCORD_STATE_DIR=~/.claude-gateway/agents/<id>/.discord-state DISCORD_DM_POLICY=disabled # open | allowlist | disabled DISCORD_GUILD_ALLOWLIST= # comma-separated guild IDs (empty = all) DISCORD_CHANNEL_ALLOWLIST= # comma-separated channel IDs (empty = all) DISCORD_AUTO_THREAD=false # create thread per conversation DISCORD_USE_EMBEDS=false # use embeds for long responses ``` ## Discord Developer Portal checklist 1. Go to https://discord.com/developers/applications 2. Select your application → Bot settings 3. Enable **MESSAGE CONTENT INTENT** (privileged intent) — **required**: without it the bot still receives message events but with **empty content**, so it can neither respond nor pair. This is the #1 cause of a bot that joins a server but stays silent. 4. Required bot permissions: - View Channel *(and Read Message History — without these the bot never sees messages in the channel)* - Send Messages - Read Message History - Create Public Threads - Send Messages in Threads - Attach Files - Embed Links - Add Reactions