#general install and set up issues when installing openclaw

1 messages ยท Page 1 of 1 (latest)

vast sailBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

shy remnantBOT
sturdy jackalBOT
#

This sounds like 2 separate things:

  1. The Cannot read properties of undefined (reading 'trim') error smells like an onboarding bug.
  2. 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:

  1. Enable Message Content Intent in the Discord Developer Portal, then restart OpenClaw:
pnpm openclaw gateway restart
#
  1. Allow your server explicitly. If you only set DISCORD_BOT_TOKEN, Discord guilds default to allowlist, 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
  1. Then run:
pnpm openclaw channels status --probe