Table of contents
- Create a Discord Application
- Create a Bot
- Enable Privileged Intents
- Copy the Bot Token
- Login Command
- Invite the Bot
- Next Steps
- FAQ
Create a Discord Application
- Go to Discord Developer Portal
- Click “New Application”
- Enter a name (e.g., “OpenClaw Bot”)
- Click “Create”
Create a Bot
- In the app sidebar, go to “Bot”
- Click “Add Bot”
- Confirm by clicking “Yes, do it!”
Enable Privileged Intents
- Scroll down to “Privileged Gateway Intents”
- Enable:
- MESSAGE CONTENT INTENT
- SERVER MEMBERS INTENT
- PRESENCES INTENT
- Save changes
Copy the Bot Token
- Under “Token”, click “Copy”
- 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
- In the Discord Developer Portal, go to “OAuth2” > “URL Generator”
- Check the
botscope - Under “Bot Permissions”, select:
- Send Messages
- Read Message History
- Embed Links
- Attach Files
- Copy the generated URL
- Paste into your browser and select your server
- Click “Authorize”
Next Steps
- Getting Started Overview
- Allowlists and Sender Policies
- Daily Brief Workflow
- Discord Setup Guide
- Discord Troubleshooting
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.