← Back to PRs

#14471: fix(discord): respect replyToMode 'off' in thread/forum channels

by niceysam open 2026-02-12 06:01 View on GitHub →
stale size: S
When `replyToMode` is `"off"`, replies in Discord thread channels (including forum posts) still get a `message_reference` attached, showing unwanted quote headers. The issue is that `createReplyReferencePlanner` checks `existingId` before checking `replyToMode === "off"`. Thread channels always have an `existingId`, so the setting gets bypassed. Moved the `"off"` guard above the `existingId` check so it actually works regardless of thread context. Added unit tests covering all reply modes. Fixes #14450

Most Similar PRs