Discord
OpenClaw uses discord.js with the Discord Bot API for DMs and guild channels. Based on official Discord.
Create app and bot
Create an application and add a Bot in the Discord Developer Portal, then copy the token.
Config
In ~/.openclaw/openclaw.json:
json
{
"channels": {
"discord": {
"token": "YOUR_BOT_TOKEN"
}
}
}You can also set DISCORD_BOT_TOKEN in the environment.
Permissions and invite
Configure the bot’s permissions in the portal and generate an invite link to add the bot to your server.