Repository navigation
Feature: @name in guild chat pings the Discord member - #31
Merged
Merged
Conversation
A Minecraft player typing @name in guild or officer chat now pings that person in Discord. The name resolves through the bridge's account links first, then the Discord member search (username, or a display name or nickname only one member has). The embed shows the mention and the message content carries it too, since embed mentions never notify. allowedMentions lists only the resolved users, so @everyone, @here, roles and raw <@id> text from guild chat ping nobody; one line pings at most five people. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013fzxP6yCRt7dM31docwTzM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by zVapor · project thread
What
When a Minecraft player types
@namein guild chat (or officer chat), the relayed Discord message now mentions and actually pings that member.src/utils/mentions.js): the bridge's own account link for that Minecraft name first, then the Discord REST member search (no GuildMembers intent needed) for an exact username, or a display name / server nickname that exactly one member has. Bots are never resolved. Unmatched names stay as typed.thanks @alice.works (trailing full stop retried without it).<@id>, and because mentions inside an embed never notify, the same ids go in the message content.allowedMentions: { parse: [], users: [resolved ids] }, so@everyone,@here, role mentions and raw<@id>text typed in-game ping nobody. At most five people per line.@do any lookup; a failed lookup drops the ping, never the message.relayToDiscord.js(guild chat) andrelayOfficerToDiscord.js. Join/leave embeds unchanged. No disguise interaction: the mention is resolved from the message body, not the author.Docs
CHANGELOG (New Features + Technical Details), DISCORD_CHANGELOG,
docs/FEATURES.md(The bridge), README feature line,site/tribridge/using-the-bridge.mdx,officer-chat.mdx,architecture.mdx. No new commands, intents, permissions or config.Verified
npm test: 89 pass (12 new:test/mentions.test.jsplus an officer-relay payload test).prettier@3.8.1 --checkclean,node --checkon the changed files.Generated by Claude Code
Generated by Claude Code