feat: add opt-out toggle for prestige bot announcements
CI / Lint, Build & Test (pull_request) Failing after 1m2s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m9s

Adds enablePrestigeAnnouncements to ProfileSettings (defaults to true).
The prestige route now checks this setting before posting the Discord
webhook, and the edit profile modal exposes a toggle in the Sounds &
Notifications section so players can opt out.

Closes #169
This commit is contained in:
2026-03-31 13:20:01 -07:00
committed by Naomi Carrigan
parent 19f5f5e54f
commit 87686a310f
5 changed files with 65 additions and 11 deletions
@@ -48,11 +48,17 @@ interface ProfileSettings {
* Whether browser system notifications are enabled.
*/
enableNotifications: boolean;
/**
* Whether prestige milestones are announced in the Discord server.
*/
enablePrestigeAnnouncements: boolean;
}
// eslint-disable-next-line @typescript-eslint/naming-convention -- intentional constant name
const DEFAULT_PROFILE_SETTINGS: ProfileSettings = {
enableNotifications: false,
enablePrestigeAnnouncements: true,
enableSounds: false,
numberFormat: "suffix",
showAchievementsUnlocked: true,