Skip to content

refactor(discord): give server roles one owner - #496

Open
Isaiahriveraa wants to merge 1 commit into
refactor/discord-folderfrom
refactor/discord-roles
Open

Isaiahriveraa wants to merge 1 commit into
refactor/discord-folderfrom
refactor/discord-roles

Conversation

@Isaiahriveraa

Copy link
Copy Markdown
Collaborator

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.js now 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

  • The interest-role picker now also refuses roles with moderation or admin permissions and " Officer" roles.
  • Reviewing and RSO verification behave as before.

Verification

  • drops @everyone, staff, officer, bot-managed, and unmentionable roles and says which — the picker uses the shared rule
  • Backend suite passes.

Stack Context

  • Gives the bot's role rules one owner, which the routing and review changes above build on.

🤖 Generated with Claude Code

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>
@github-actions

Copy link
Copy Markdown

🚀 Deployed on https://pr-496--iuga.netlify.app

@Isaiahriveraa
Isaiahriveraa added this pull request to stack #501 November 26, 2026 09:11
@Isaiahriveraa
Isaiahriveraa marked this pull request as ready for review November 26, 2026 09:15
Copilot AI balanced review requested due to automatic review settings November 26, 2026 09:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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.

2 participants