generated from nhcarrigan/template
feat: show "join our community" modal on game load if player is not in the Discord server #133
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
When a player loads the game and is not a member of the NHCarrigan Discord server, show a dismissible modal inviting them to join. This gives players an easy on-ramp to the community without being intrusive.
Depends on #132, which adds the
inGuildflag to the Player record and keeps it in sync via OAuth and bot events.Implementation
Backend
inGuildis stored on the Player record and maintained by #132 — no extra Discord API calls needed at load time.inGuild: booleanfrom the load endpoint so the client has it on every game load.Frontend
inGuild === false, show a modal with:Task Checklist
inGuild: booleantoLoadResponsetypeinGuildfrom the load endpointinGuild === false(once per session)✨ This issue was created with help from Hikari~ 🌸