Skip to content

feat: bound QQ author shown as @Discord mention without ping#25

Open
WhiteFeather127 wants to merge 5 commits into
Phobos-developers:masterfrom
WhiteFeather127:feat/silent-mention-for-bound-users
Open

feat: bound QQ author shown as @Discord mention without ping#25
WhiteFeather127 wants to merge 5 commits into
Phobos-developers:masterfrom
WhiteFeather127:feat/silent-mention-for-bound-users

Conversation

@WhiteFeather127

@WhiteFeather127 WhiteFeather127 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

When a QQ user who has a Discord binding sends a message forwarded to Discord, show the author prefix as <@discord_id> format instead of plain text. Use Discord's allowed_mentions to exclude the author from the ping whitelist, so they appear as a real @mention (blue highlight) but receive no notification.

Changes:

  • orchestrator.py: Added _build_allowed_mentions() to scan message segments for Discord mention IDs and build an AllowedMentions whitelist excluding the bound author's ID.
  • adapter.py: send_message now accepts an optional allowed_mentions parameter.

Bound users appear as @DiscordName without ping; other @mentions ping normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant