Repository navigation
feat: add Discord role permission sync module - #62
Open
koji-assistant[bot] wants to merge 1 commit into
Open
koji-assistant[bot] wants to merge 1 commit into
koji-assistant[bot] wants to merge 1 commit into
Conversation
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.
Summary
discord-role-permission-sync, a player-connected hook module for syncing Takaro role membership to game permission levels.admin add {playerGameId} {permissionLevel}.Discord source
Reserved slots and Takaro/Discord role integrationtrevorjd)afaad216-748f-4b26-9157-a7da4c78011aat2026-08-02T02:19:45.184Z: asked whether a module exists that sets a player's 7D2D permission level from their synced Takaro/Discord role for VIP reserved slots.2c61cf45-0857-4d35-8e28-e047fae96bc0at2026-08-02T02:39:27.853Z: sketched the desired on-join command behavior and optional Discord-link reminder.Test evidence
npm run build✅npm run typecheck✅node --test modules/discord-role-permission-sync/test/helpers.test.js✅ (6 helper tests)node dist/scripts/module-to-json.js modules/discord-role-permission-sync /tmp/discord-role-permission-sync.json✅src/functions/permission-sync-helpers.js✅Runtime QA
Diamond -> 200, join as a mapped player, verifyhook-executed success:true, and confirm the game console/serveradmin permission level changed.Reviewer notes
rolePermissionMappings.dryRun: trueis available for safe setup before executingadmin addlive.