Skip to content

refactor(discord): name Discord error codes once and keep role policy out of the client - #500

Draft
Isaiahriveraa wants to merge 1 commit into
refactor/discord-split-approvalsfrom
refactor/discord-error-codes
Draft

Isaiahriveraa wants to merge 1 commit into
refactor/discord-split-approvalsfrom
refactor/discord-error-codes

Conversation

@Isaiahriveraa

Copy link
Copy Markdown
Collaborator

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

  • No behavior change.

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)
  • Backend suite passes.

Stack Context

  • Last cleanup in the stack: platform/ now holds only Discord's protocol, with no IUGA rules.

🤖 Generated with Claude Code

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

Copy link
Copy Markdown

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

@Isaiahriveraa
Isaiahriveraa added this pull request to stack #501 November 26, 2026 09:11
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