fix: send webhook milestone notifications silently #45

Merged
naomi merged 1 commits from fix/silent into main 2026-03-09 20:24:13 -07:00
Owner

Summary

  • Adds flags: 4096 (MessageFlags.SUPPRESS_NOTIFICATIONS) to the Discord webhook payload in postMilestoneWebhook
  • Milestone announcements (prestige, transcendence, apotheosis) will now appear in the channel without triggering desktop or mobile push notifications
  • Defines the magic number as a documented suppressNotifications constant for self-documentation
  • Updates the webhook test to assert flags: 4096 is present in the outgoing payload

Closes #41

Test plan

  • Lint passes: pnpm lint
  • Build passes: pnpm build
  • Tests pass with 100% coverage: pnpm test
  • Trigger a prestige/transcendence/apotheosis in-game and verify the Discord webhook message arrives without pinging anyone

This issue was created with help from Hikari~ 🌸

## Summary - Adds `flags: 4096` (`MessageFlags.SUPPRESS_NOTIFICATIONS`) to the Discord webhook payload in `postMilestoneWebhook` - Milestone announcements (prestige, transcendence, apotheosis) will now appear in the channel without triggering desktop or mobile push notifications - Defines the magic number as a documented `suppressNotifications` constant for self-documentation - Updates the webhook test to assert `flags: 4096` is present in the outgoing payload Closes #41 ## Test plan - [ ] Lint passes: `pnpm lint` - [ ] Build passes: `pnpm build` - [ ] Tests pass with 100% coverage: `pnpm test` - [ ] Trigger a prestige/transcendence/apotheosis in-game and verify the Discord webhook message arrives without pinging anyone ✨ This issue was created with help from Hikari~ 🌸
hikari added 1 commit 2026-03-09 20:01:12 -07:00
fix(webhook): send milestone notifications with SUPPRESS_NOTIFICATIONS flag
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m7s
CI / Lint, Build & Test (pull_request) Successful in 1m9s
8fa36f2757
Adds flags: 4096 (MessageFlags.SUPPRESS_NOTIFICATIONS) to the Discord
webhook payload so milestone announcements appear in the channel without
triggering desktop or mobile push notifications. Closes #41.
naomi merged commit ac94f67797 into main 2026-03-09 20:24:13 -07:00
naomi deleted branch fix/silent 2026-03-09 20:24:14 -07:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/elysium#45