You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(discord): suppress pairing reply in groups without @mention (#1091) (#1092)
* fix(discord): suppress pairing reply in groups without @mention
When `pairing` group policy is combined with `Require @mention`, the bot
posted a pairing code in response to every group message because
`checkGroupPolicy` ran before the mention gate.
Pre-compute the mention flag and pass it into `checkGroupPolicy`. When
RequireMention is enabled and the bot was not addressed, return silently
instead of triggering `sendPairingReply`.
DMs are unchanged — every DM is implicitly directed at the bot.
Fixes#1091
* refactor(discord): drop issue ref from inline comment
---------
Co-authored-by: viettranx <viettranx@gmail.com>
0 commit comments