This commit is contained in:
Christopher Cookman 2024-05-19 23:58:17 -06:00
parent e8b7da3d58
commit 34f1580ff7
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -1006,7 +1006,7 @@ discord.on("interactionCreate", async (interaction) => {
day = interaction.options.getInteger("day"); day = interaction.options.getInteger("day");
type = interaction.options.getString("type"); type = interaction.options.getString("type");
if (day < 0 || day > 7) return interaction.reply({ content: "Invalid day", ephemeral: true }); if (day < 0 || day > 7) return interaction.reply({ content: "Invalid day", ephemeral: true });
if (type !== "fire" && type !== "storm") return interaction.reply({ content: "Invalid type", ephemeral: true }); if (type !== "fire" && type !== "convective") return interaction.reply({ content: "Invalid type", ephemeral: true });
url = outlookURLs[type][day]; url = outlookURLs[type][day];
await interaction.deferReply(); await interaction.deferReply();
fetch(url).then((res) => { fetch(url).then((res) => {