Phase 6 / Ep 29: Discord Deep Integration —— Bot Creation to Server Deployment

⏱ Est. reading time: 4 min Updated on 4/13/2026

🎯 Learning Objective: Deploy the OpenClaw Bot in your Discord server.

1. Discord Developer Portal

  1. Visit discord.com/developers
  2. New Application → Enter Name
  3. Left sidebar Bot → Add Bot → Copy Token
  4. Left sidebar OAuth2 → URL Generator:
    • Scopes: bot, applications.commands
    • Bot Permissions: Send Messages, Read Message History, Use Slash Commands
  5. Use the generated URL to invite the Bot to your server

2. Connect to OpenClaw

openclaw channels add discord --token "MTIzNDU2Nzg5.xxx"
openclaw channels pair <code>

3. Channel Binding Agent

# #general → personal agent
openclaw agents bind personal discord --channel general

# #dev → code agent
openclaw agents bind code-agent discord --channel dev

# #ops → ops agent
openclaw agents bind ops-agent discord --channel ops

4. CLI vs Telegram vs Discord Comparison

Operation CLI Telegram Discord
Send Message openclaw chat "xxx" Direct Message Direct Message / @bot
Clear Session openclaw sessions clear /clear /clear
View Status openclaw status /status /status
Install Skill openclaw skills install xx /skills install xx /skills install xx
View Logs openclaw logs /logs /logs
Switch Agent openclaw agents switch xx /switch xx /switch xx

5. Discord Specific Features

  • Thread Support: Long conversations automatically create Threads
  • Embed Rich Text: Agent replies use Discord Embed format
  • Role Permissions: Restrict which roles can interact with the Agent
  • Channel Isolation: Different channels bind to different Agents

Next Episode Preview: Ep 30, Multi-channel Routing Strategy – How to elegantly manage Agents when simultaneously connected to Telegram and Discord.