From ec4d224be4322c7eb88f3caad2b672309f63cf0c Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 15 May 2021 19:59:26 -0500 Subject: [PATCH] Use interaction.user instead of undefined interaction.author --- bot/awesomescibo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index 7ce7969..4d5a0fd 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -396,8 +396,8 @@ async function rounds(action, interaction) { } newGeneratedRound = new generatedRound({ htmlContent: finalizedHTML, - requestedBy: interaction.author.id, - authorTag: interaction.author.tag, + requestedBy: interaction.user.id, + authorTag: interaction.user.tag, timestamp: new Date().toISOString(), }); newGeneratedRound.save((err, round) => {