[www] discord per-role token drop

This commit is contained in:
Devin Zuczek
2026-10-03 12:14:41 -04:00
parent 1458df1664
commit 602d6cea90
4 changed files with 285 additions and 2 deletions
+4
View File
@@ -48,6 +48,7 @@ import {
getReportHandler,
giftItemHandler,
giftOnlineTokensHandler,
giftRoleTokensHandler,
giftRoomTokensHandler,
giftTokensHandler,
giftXpHandler,
@@ -556,6 +557,9 @@ const app = new Hono<App>()
.post('/api/staff/rooms/:roomId/gift-tokens', requireDeveloper, giftRoomTokensHandler)
// The account page's token drop: the same gift to everyone online at once.
.post('/api/staff/online/gift-tokens', requireDeveloper, giftOnlineTokensHandler)
// Its sibling: the same gift to every account whose Discord link holds a role, offline
// included — the supporter cron's audience, with an operator's amount and message.
.post('/api/staff/discord-roles/:roleId/gift-tokens', requireDeveloper, giftRoleTokensHandler)
.post('/api/staff/players/:id/username-changes', addUsernameChangeHandler)
.post('/api/staff/players/:id/clear-password', clearPasswordHandler)