Connect Discord

TL;DR: Create a Discord app, enable privileged intents, copy the token, run openclaw channels login discord --token YOUR_TOKEN, and invite the bot.

Applies to: Windows, macOS, Linux
Audience: Power users, developers, security-conscious, enterprise
Last updated: 2026-02-23

power-user discord channels cli

Table of contents

  1. Create a Discord Application
  2. Create a Bot
  3. Enable Privileged Intents
  4. Copy the Bot Token
  5. Login Command
  6. Invite the Bot
  7. Next Steps
  8. FAQ

Create a Discord Application

  1. Go to Discord Developer Portal
  2. Click “New Application”
  3. Enter a name (e.g., “OpenClaw Bot”)
  4. Click “Create”

Create a Bot

  1. In the app sidebar, go to “Bot”
  2. Click “Add Bot”
  3. Confirm by clicking “Yes, do it!”

Enable Privileged Intents

  1. Scroll down to “Privileged Gateway Intents”
  2. Enable:
    • MESSAGE CONTENT INTENT
    • SERVER MEMBERS INTENT
    • PRESENCES INTENT
  3. Save changes

Copy the Bot Token

  1. Under “Token”, click “Copy”
  2. Keep this token secure. It’s your bot’s password.

Login Command

Run the login command with your token:

openclaw channels login discord --token YOUR_TOKEN

Replace YOUR_TOKEN with the copied bot token.

Invite the Bot

  1. In the Discord Developer Portal, go to “OAuth2” > “URL Generator”
  2. Check the bot scope
  3. Under “Bot Permissions”, select:
    • Send Messages
    • Read Message History
    • Embed Links
    • Attach Files
  4. Copy the generated URL
  5. Paste into your browser and select your server
  6. Click “Authorize”

Next Steps

FAQ

Q: Why do I need privileged intents?
A: To read message content and user presence. Required for full functionality.

Q: Can I limit the bot to certain channels?
A: Yes. Configure channels.discord.allowChannels in openclaw.json.

Q: What if the bot doesn’t respond?
A: Ensure it has permissions and is in the server. Check logs.

Q: Can I use slash commands?
A: Yes. Register slash commands in the Discord Developer Portal and map them to skills.

Q: How do I disconnect?
A: Run openclaw channels logout discord.

Recommended next

Connect Signal