12 lines
635 B
TypeScript
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.`);
|
|
}
|