generated from nhcarrigan/template
feat: grant Discord role and post webhook on apotheosis
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
buildPostApotheosisState,
|
||||
isEligibleForApotheosis,
|
||||
} from "../services/apotheosis.js";
|
||||
import { postMilestoneWebhook } from "../services/webhook.js";
|
||||
import { grantApotheosisRole, postMilestoneWebhook } from "../services/webhook.js";
|
||||
|
||||
export const apotheosisRouter = new Hono<HonoEnv>();
|
||||
|
||||
@@ -62,6 +62,7 @@ apotheosisRouter.post("/", async (context) => {
|
||||
},
|
||||
});
|
||||
|
||||
void grantApotheosisRole(discordId);
|
||||
void postMilestoneWebhook(discordId, "apotheosis", {
|
||||
prestige: newState.prestige.count,
|
||||
transcendence: newState.transcendence?.count ?? 0,
|
||||
|
||||
Reference in New Issue
Block a user