Skip to content

px p4: fenrir /link /unlink /linked (atomic code claim, bifrost.players.discord_id string, optional Verified role) - #49

Draft
alppp wants to merge 2 commits into
px/p3-noticesfrom
px/p4-link
Draft

px p4: fenrir /link /unlink /linked (atomic code claim, bifrost.players.discord_id string, optional Verified role)#49
alppp wants to merge 2 commits into
px/p3-noticesfrom
px/p4-link

Conversation

@alppp

@alppp alppp commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Companion to Bifrost PR valhallamcio/Bifrost#80 (PX wave P4), stacked on #48. Not deployed. /link code: (any member, guild-only) claims a bifrost.discord_link_codes doc with ONE findOneAndUpdate, writes bifrost.players {discord_id: <string snowflake>, discord_name, discord_linked_at} guarded by discord_id:{$in:[null]}, audits, optionally adds the Verified role (discordLink.verifiedRoleId; REST fetch — no GuildMembers intent; bot needs Manage Roles above the role); /unlink [player] (own accounts; ManageGuild may unlink anyone; role removed when none remain); /linked. One Discord ↔ many MC, one MC ↔ one Discord. Index names/options identical to Bifrost's. Tests 106 → 128. config/ is gitignored: key documented in README + initializer template (false = off).

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