Repository navigation
refactor(discord): give server roles one owner - #496
Open
Isaiahriveraa wants to merge 1 commit into
Open
Isaiahriveraa wants to merge 1 commit into
Isaiahriveraa wants to merge 1 commit into
Conversation
Who may review, which roles are staff or officer roles, and which roles officers may ping were decided separately in the reviewer check, the registered student organization (RSO) directory, and the event audience picker, and the three disagreed. discord/roles.js now answers all three, and app.js builds it once from the role settings. The audience picker now also refuses mentionable roles with moderation or admin permissions and "<RSO> Officer" roles, matching the directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🚀 Deployed on https://pr-496--iuga.netlify.app |
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.
Rationale
Three files each decided which server roles are staff, and they disagreed: the audience picker would let officers ping a mentionable role with Manage Server, which the registered student organization (RSO) directory treats as staff.
discord/roles.jsnow answers "who may review", "is this a staff or officer role", and "can officers ping it", so #423 (setting roles from Discord) has one place to change.Observable Behavior
Verification
drops @everyone, staff, officer, bot-managed, and unmentionable roles and says which— the picker uses the shared ruleStack Context
🤖 Generated with Claude Code