From 37471d5068fedf4193d39bfe3b4d28a3480c74fa Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 2 May 2021 00:33:13 -0500 Subject: [PATCH] Fix message fetching and editing --- bot/awesomescibo.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index 5a54576..fb4a44e 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -343,7 +343,10 @@ async function generateRound(message) { console.log(err); return; } - message.channel.fetch(generatingMessage.id).edit(`https://api.adawesome.tech/round/${round._id.toString()}`); + message.channel.messages.fetch(generatingMessage.id) + .then(message => { + message.edit(`https://api.adawesome.tech/round/${round._id.toString()}`); + }); }); } });