From 55218cf545adcef9fdd144ed143b320fca8173be Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 2 May 2021 00:34:08 -0500 Subject: [PATCH] Fix message fetching and editing --- bot/awesomescibo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index fb4a44e..3f9a4e4 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -345,7 +345,8 @@ async function generateRound(message) { } message.channel.messages.fetch(generatingMessage.id) .then(message => { - message.edit(`https://api.adawesome.tech/round/${round._id.toString()}`); + const msg = msg.first(); + msg.edit(`https://api.adawesome.tech/round/${round._id.toString()}`); }); }); }