Discord bot quickstart
Developer Portal → token → Gateway → first message
Developer Portal → token → Gateway → first message
This is the fast path for Discord. Voice channels, threads, stream previews, and server-wide policies are in the full Discord channel guide. Confirm exact config keys in official docs.
Time: about 15–20 minutes if OpenClaw is already installed.
Optional: set username/avatar under Bot settings.
bot.The bot should appear offline until the Gateway connects.
During openclaw onboard, enable Discord and paste the token—or add under channels.discord in configuration (see Discord reference for JSON shape).
You can also set DISCORD_BOT_TOKEN in the environment on the Gateway host.
openclaw gateway start
openclaw doctor
Doctor should report Discord healthy. For 24/7, use a VPS or home server that does not sleep.
openclaw pairing list discord then openclaw pairing approve discord <code> (pairing guide).Run openclaw security audit --deep before opening DMs to everyone (safety checklist).
| Symptom | Likely cause | Fix |
|---|---|---|
| Bot online but ignores messages | Message Content Intent off | Enable intent; restart Gateway |
| 401 / invalid token | Wrong or reset token | Regenerate token in portal; update config |
| Missing access in channel | Role/channel permissions | Re-invite with permissions; check channel overrides |
| Only pairing replies | Not approved | pairing approve |
More errors: Discord guide and troubleshooting.