From 4290d4536f53a4cf426873d888f7dc5f6168b24c Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 2 May 2021 00:38:10 -0500 Subject: [PATCH] Fix message author object --- bot/awesomescibo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index 4323cac..5f30412 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -344,9 +344,9 @@ async function generateRound(message) { return; } message.channel.messages.fetch(generatingMessage.id) - .then(message => { - const msg = message.first(); - msg.edit(`${msg.author}, here's your round: https://api.adawesome.tech/round/${round._id.toString()}`); + .then(generatingMessage => { + const msg = generatingMessage.first(); + msg.edit(`${message.author}, here's your round: https://api.adawesome.tech/round/${round._id.toString()}`); }); }); }