From 21e96e8d52cdb69791468459db1569a734e5c148 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 8 May 2024 14:37:18 -0600 Subject: [PATCH] await my beloved --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 38c70b8..e38f79b 100644 --- a/index.js +++ b/index.js @@ -616,7 +616,7 @@ discord.on("interactionCreate", async (interaction) => { if (interaction.customId) { const product_id = interaction.customId; const url = `https://mesonet.agron.iastate.edu/api/1/nwstext/${product_id}`; - interaction.deferReply({ ephemeral: true }); + await interaction.deferReply({ ephemeral: true }); fetch(url).then((res) => { if (res.status !== 200) { interaction.reply({ content: "Failed to get product text", ephemeral: true });