#discord plugin error

1 messages · Page 1 of 1 (latest)

leaden geyser
#

[plugins] discord failed to load from C:\Users\My_User.openclaw\extensions\discord\index.ts: Error: Cannot find module 'C:/Users/My_User/AppData/Roaming/npm/node_modules/openclaw/dist/plugin-sdk/root-alias.cjs/discord'
Require stack:

  • C:\Users\My_User.openclaw\extensions\discord\index.ts
opaque merlinBOT
#

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

barren quailBOT
#

This looks like OpenClaw/plugin version skew, not a Discord token/config issue.

The clue is that it’s loading Discord from:

C:\Users\My_User\.openclaw\extensions\discord\index.ts

…but resolving the SDK subpath to:

...\openclaw\dist\plugin-sdk\root-alias.cjs/discord

That usually means a stale externalized Discord plugin is shadowing the bundled one, or OpenClaw and the Discord plugin are on mismatched versions.

First, can you paste:

openclaw --version
#

https://docs.openclaw.ai/install/updating

If that doesn’t fix it, don’t edit index.ts manually — we’ll look at plugins list and decide whether to update/remove the stale Discord plugin entry.

leaden geyser
# barren quail <https://docs.openclaw.ai/install/updating> If that doesn’t fix it, don’t edit ...

Config warnings:

  • plugins.entries.discord: plugin discord: channel plugin manifest declares discord without channelConfigs metadata; add openclaw.plugin.json#channelConfigs so config schema and setup surfaces work before runtime loads
  • plugins.entries.discord: plugin discord: channel plugin manifest declares discord without channelConfigs metadata; add openclaw.plugin.json#channelConfigs so config schema and setup surfaces work before runtime loads
    Plugin registry refreshed: 68/115 enabled plugins indexed.
barren quailBOT
#

Yep — that warning confirms it’s loading a stale external Discord plugin from ~\.openclaw\extensions\discord, not the current bundled Discord plugin.

Don’t add channelConfigs yourself; that’s a plugin-author warning.

Please run:

openclaw --version
openclaw plugins inspect discord

If inspect shows the source/path under C:\Users\My_User\.openclaw\extensions\discord, remove that stale install:

openclaw plugins uninstall discord --dry-run
openclaw plugins uninstall discord
#
openclaw plugins registry --refresh
openclaw doctor --fix
openclaw gateway restart

If the dry-run looks like it’s about to remove more than that stale extension folder, stop and paste it here first.

Docs: https://docs.openclaw.ai/cli/plugins

leaden geyser
barren quailBOT
#

That’s still the same stale external Discord plugin being discovered.

If openclaw plugins uninstall discord didn’t clear it, do the reversible manual version:

openclaw gateway stop
Rename-Item "$env:USERPROFILE\.openclaw\extensions\discord" "discord.bak"
openclaw plugins registry --refresh
openclaw doctor --fix
openclaw gateway restart

Then check:

openclaw plugins inspect discord