From 7db57a11916bf27ea843731940cc3bf693cfb3e1 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 15 May 2021 20:09:01 -0500 Subject: [PATCH] Get rid of generating message --- bot/awesomescibo.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index 4b39579..40e2bc4 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -367,7 +367,6 @@ function aboutMessage(message) { async function rounds(action, interaction) { if (action === "generate") { - const generatingMessage = interaction.reply("Generating...", { ephemeral: true }); let i; let finalizedHTML = '

ROUND GENERATED BY AWESOMESCIBO USING THE SCIBOWLDB API

'; let tossup_question; @@ -405,11 +404,7 @@ async function rounds(action, interaction) { console.log(err); return; } - interaction.channel.messages.fetch(generatingMessage.id) - .then(generatingMessage => { - const msg = generatingMessage.first(); - msg.edit(`Here's your round: https://api.adawesome.tech/round/${round._id.toString()}`); - }); + interaction.reply(`Here's your round: https://api.adawesome.tech/round/${round._id.toString()}`); }); }); } else if (action === "list"){