feat: grant Elysian role on auth and prompt non-members to join #134

Merged
naomi merged 5 commits from feat/role-and-cta into main 2026-03-24 18:49:51 -07:00

5 Commits

Author SHA1 Message Date
hikari e2c07f8b4c fix: correct Discord client ID constant
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m9s
CI / Lint, Build & Test (pull_request) Successful in 1m11s
2026-03-24 18:40:19 -07:00
hikari 1a99e83b86 refactor: hardcode non-secret Discord IDs as constants
Move guild ID, apotheosis role ID, Discord client ID, and redirect URI
from env vars to hardcoded constants — none of these are secrets, and
hardcoding removes unnecessary runtime configuration surface. Update
tests to use the real IDs and drop now-irrelevant env var scenarios.
2026-03-24 18:26:38 -07:00
hikari 8ccc3f4d0d refactor: hardcode Elysian role ID instead of env var 2026-03-24 18:15:27 -07:00
hikari 2c34fe2c81 fix: update join community modal with correct Discord invite URL 2026-03-24 18:11:54 -07:00
hikari 5025948530 feat: add community role grant and join prompt for players
- Grant Elysian Discord role to players on OAuth login (new and returning)
- Add inGuild flag to Player schema, seeded from role grant response
- Connect Discord Gateway WebSocket to keep inGuild in sync on join/leave
- Return inGuild from load endpoint; expose in game context
- Show join community modal once per session when inGuild is false
2026-03-24 18:10:22 -07:00