Repository navigation
refactor(discord): name Discord error codes once and keep role policy out of the client - #500
Draft
Isaiahriveraa wants to merge 1 commit into
Draft
Isaiahriveraa wants to merge 1 commit into
Isaiahriveraa wants to merge 1 commit into
Conversation
… out of the client The registered student organization (RSO) directory and event announcements each hard-coded Discord's numeric error codes, and the Discord client decided that every role it creates has no permissions and can't be pinged, which is IUGA's rule for RSO officer roles. The client now names the codes in DISCORD_ERROR and creates a role with whatever settings it is given; the directory asks for the officer-role settings. No behavior changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🚀 Deployed on https://pr-500--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
Discord's numeric error codes (10011, 50013, …) were repeated in the registered student organization (RSO) directory and event announcements, and the Discord client hard-coded IUGA's rule that officer roles have no permissions and can't be pinged. The client now names each code once, and the officer-role settings live with the directory that owns officer roles.
Observable Behavior
Verification
creates the RSO and a no-permission, unpingable role, then grants it and the officer role— the directory asks for the officer-role settings (fails if it stops)Stack Context
platform/now holds only Discord's protocol, with no IUGA rules.🤖 Generated with Claude Code