Browse Source

Use interaction.user instead of nonexistent interaction.author

pull/10/head
Abheek Dhawan 4 years ago
parent
commit
785a33dc31
  1. 2
      bot/awesomescibo.js

2
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}`);
}

Loading…
Cancel
Save