tg-bot-ts/src/subcommands/bringer/set.ts
Nuno Duque Nunes 1446cd10fc initial commit
2026-06-01 13:36:51 +01:00

12 lines
635 B
TypeScript

import { ChatInputCommandInteraction } from "discord.js";
import { setBringerOverride } from "../../systems/wrank";
import { replyAndDelete } from "../../utils";
import { Nation } from "../../types";
export async function handleBringerSet(interaction: ChatInputCommandInteraction): Promise<void> {
const nation = interaction.options.getString("nation", true) as Nation;
const usermapKey = interaction.options.getString("name", true);
setBringerOverride(nation, usermapKey);
return void replyAndDelete(interaction, `✅ **${usermapKey}** set as ${nation === "Capella" ? "Luminous" : "Storm"} Bringer for this week.`);
}