#general install and set up issues when installing openclaw
1 messages ยท Page 1 of 1 (latest)
This sounds like 2 separate things:
- The
Cannot read properties of undefined (reading 'trim')error smells like an onboarding bug. - DM works but server messages do not usually means Discord guild policy or intents.
First, what does this show?
pnpm openclaw --version
While you check that, these are the big things to verify:
- Enable Message Content Intent in the Discord Developer Portal, then restart OpenClaw:
pnpm openclaw gateway restart
- Allow your server explicitly. If you only set
DISCORD_BOT_TOKEN, Discord guilds default toallowlist, so DMs can work while servers stay silent.
Minimal config shape:
{
channels: {
discord: {
enabled: true,
groupPolicy: "allowlist",
guilds: {
"YOUR_SERVER_ID": {
requireMention: true,
// optional: users: ["YOUR_USER_ID"]
},
},
},
},
}
If you want it to reply without pinging, set:
requireMention: false
- Then run:
pnpm openclaw channels status --probe