Discord
Discord works well for direct messages and server channels through the official bot API.
What you need
- A Discord application with a bot
- A bot token
- Developer Mode enabled so you can copy user, server, and channel IDs
- Privileged intents enabled, especially Message Content Intent
Setup flow
- Create a Discord application and bot in the Developer Portal.
- Enable Message Content Intent.
- Invite the bot with
botandapplications.commandsscopes. - Store the token securely and connect it to Nexu.
- Start the gateway.
- DM the bot, receive a pairing code, and approve it.
Example config
json5
{
channels: {
discord: {
enabled: true,
token: {
source: "env",
provider: "default",
id: "DISCORD_BOT_TOKEN",
},
},
},
}Recommended server policy
- Start with
groupPolicy: "allowlist" - Add your private server under
guilds - Keep
requireMention: trueat first - Turn
requireMentionoff only after you confirm the server is private and trusted
Verify
bash
openclaw doctor
openclaw channels status --probe
openclaw pairing list discordReference source: https://docs.openclaw.ai/channels/discord