#21244: fix(discord): defer own-mode fetch until thread allow checks pass
channel: discord
size: XS
Cluster:
Signal and Discord Fixes
## Summary
- Restore this PR to its original scope: defer Discord reaction own-mode message fetch until allowlist/channel gates pass.
- Avoid unnecessary `message.fetch()` when notifications are blocked by channel/thread policy.
- Keep behavior unchanged for allowed notifications; only reorder gate evaluation.
## Why
In own reaction mode, we should not fetch message author metadata before we know the thread/channel is eligible for notification. This reduces unnecessary API calls and aligns with gate-first logic.
## Files
- `src/discord/monitor/listeners.ts`
## Commit
- `28769a794bfc2ba8d9a2c2b62da6bfc2b32eaa33`
Most Similar PRs
#23158: discord: harden preflight/reply path against slow lookup latency
by danielstarman · 2026-02-22
67.4%
#17513: fix(discord): respect groupPolicy in channel config fallback (#4555)
by aronchick · 2026-02-15
67.0%
#17254: fix(discord): intercept text-based slash commands instead of forwar...
by robbyczgw-cla · 2026-02-15
66.7%
#22946: fix(discord): reject thread creation in thread/voice/stage channels
by iamhitarth · 2026-02-21
65.0%
#20009: fix(discord): immediately defer interactions to prevent timeouts
by Gitjay11 · 2026-02-18
64.8%
#19011: fix(discord): enforce owner checks for privileged message actions
by coygeek · 2026-02-17
64.6%
#6089: fix(slack): add reactionNotifications config check to reactions han...
by jontsai · 2026-02-01
64.6%
#22642: fix(discord): Discord status state machine 2.0 (clean restart, foll...
by victorGPT · 2026-02-21
64.0%
#20967: fix(discord): report connected state so health-monitor can restart ...
by who96 · 2026-02-19
63.0%
#14471: fix(discord): respect replyToMode 'off' in thread/forum channels
by niceysam · 2026-02-12
62.3%