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 { 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.`); }