Skip to content

[Bug]: Discord requireMention not working - agent responds and shows typing even without mention #34353

@KaiHosoya

Description

@KaiHosoya

Bug type

Regression (worked before, now fails)

Summary

Discord requireMention: true is not working correctly in OpenClaw 2026.3.2. The agent responds and shows "typing..." status even when not mentioned in guild channels where requireMention is set to true.

Steps to reproduce

  1. Configure Discord guild with requireMention: true:
{
  "channels": {
    "discord": {
      "enabled": true,
      "guilds": {
        "(My Guild Id)": {
          "requireMention": true,
          "users": ["(My User Id)"]
        }
      }
    }
  }
}
  1. Restart the gateway: openclaw gateway restart

  2. Send a message in a guild channel without mentioning the bot

  3. Observe: Agent shows "typing..." and responds to the message

Expected behavior

Agent should not respond or show typing status when:

  • Message is in a guild channel with requireMention: true
  • Bot is not mentioned in the message

Agent should only respond when explicitly mentioned (e.g., @OpenClaw).

Actual behavior

  • Agent shows "typing..." indicator immediately after receiving message
  • Agent responds to the message even without mention
  • Inbound metadata shows chat_type: "direct" even for guild channel messages

OpenClaw version

2026.3.2

Operating system

macOS 26.3(arm64)

Install method

npm global

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions