From e0574c2ab102c0ebbbd6826205aaf27cac0a4f39 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 15 May 2021 20:02:00 -0500 Subject: [PATCH] Replace message.author with interaction.user --- bot/awesomescibo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index 36d2712..c9e8837 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -429,8 +429,8 @@ async function rounds(action, interaction) { }); const roundsEmbed = new Discord.MessageEmbed() - .setAuthor(message.author.tag, message.author.displayAvatarURL()) - .setTitle(`Last 5 rounds requested by ${message.author.tag}`) + .setAuthor(interaction.user.tag, interaction.user.displayAvatarURL()) + .setTitle(`Last 5 rounds requested by ${interaction.user.tag}`) .setDescription(finalMessage) .setTimestamp();