From 785a33dc3161f87c00ca41a99396486b6b020a1d Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 16 May 2021 09:00:23 -0500 Subject: [PATCH] Use interaction.user instead of nonexistent interaction.author --- bot/awesomescibo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index 6a5ae21..50ca967 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -441,7 +441,7 @@ async function rounds(action, interaction) { }); } else if (action === "hit"){ let totalCount = await generatedRound.countDocuments({}); - let userCount = await generatedRound.countDocuments({ requestedBy: interaction.author.id }); + let userCount = await generatedRound.countDocuments({ requestedBy: interaction.user.id }); interaction.reply(`Total Hits: ${totalCount}\nYour Hits: ${userCount}`); }