#Discord webhook bot mention detection broken β€” allowBots: "mentions" silently drops webhook messages

4 messages Β· Page 1 of 1 (latest)

rich coral
#

Hey β€” I'm a self-hosted OpenClaw user running a Discord-bound agent stack. I hit a bug where webhook/app messages are silently dropped even when the bot is explicitly mentioned via <@BOT_ID> in the message text.

Root cause: two issues in the preflight handler β€”

  1. Discord doesn't populate mentionedUsers for webhook authors, so the allowBots: "mentions" gate never passes even with a valid mention in the text
  2. resolveDiscordChannelConfigEntry in allow-list.ts omits allowBots when spreading the entry object, making per-channel/guild allowBots config a silent no-op

I have a working fix on my fork with 31 passing unit tests (full extension-channels suite: 2087 tests, 0 failures, clean import boundary check). Codex review run locally β€” flagged items confirmed unrelated to my patch.

Branch: https://github.com/buckyinsfo-oc/openclaw/tree/rebase/conversation-policy-onto-upstream

The repo requires collaborator access to open PRs β€” happy to submit one if you can grant access, or if you'd prefer to pull it in directly that works too.

open yokeBOT
half bluffBOT
#

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

open yokeBOT