#general install and set up issues when installing openclaw

1 messages · Page 1 of 1 (latest)

deep marten
#

hey, im having some issues setting up openclaw. whenever i try to set up channels i keep getting this error: "TypeError: Cannot read properties of undefined (reading 'trim')", so i had to skip that part just to get it working. now the bot only responds in dms but doesnt respond at all in servers, even when i ping it. not sure what im doing wrong, any help would be appreciated

pliant ledgeBOT
mental furnaceBOT
#

Let me check the docs and source so I don’t guess.

#

I found the Discord docs and the likely guild-side blockers. I’m checking whether that trim crash is a known setup bug too.

#

Yeah, this is probably not you messing it up.

If DMs work, the bot token and pairing are mostly fine. The two big guild-side blockers are usually:

  • you skipped Discord channel setup, so OpenClaw falls back to groupPolicy: "allowlist" and ignores server messages until your guild is explicitly added
  • Message Content Intent is off in the Discord Developer Portal, or you enabled it but did not restart the gateway

The trim error during setup sounds like a setup/onboarding bug, not normal behavior.

Please send these first:

openclaw --version
openclaw channels status --probe
openclaw status --all
#

Also double check in Discord Developer Portal for your bot:

  • Message Content Intent = on
  • Server Members Intent = on recommended
  • then restart OpenClaw

If you skipped channel setup, make sure your config has a Discord guild entry like this:

{
  channels: {
    discord: {
      enabled: true,
      groupPolicy: "allowlist",
      guilds: {
        "YOUR_SERVER_ID": {