Browse Source

Use interaction.user instead of undefined interaction.author

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

4
bot/awesomescibo.js

@ -396,8 +396,8 @@ async function rounds(action, interaction) {
} }
newGeneratedRound = new generatedRound({ newGeneratedRound = new generatedRound({
htmlContent: finalizedHTML, htmlContent: finalizedHTML,
requestedBy: interaction.author.id, requestedBy: interaction.user.id,
authorTag: interaction.author.tag, authorTag: interaction.user.tag,
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}); });
newGeneratedRound.save((err, round) => { newGeneratedRound.save((err, round) => {

Loading…
Cancel
Save