From 6e5eeaa99fd0551c16b8f0c4bd480b72e5e28a0d Mon Sep 17 00:00:00 2001 From: supositware Date: Mon, 20 Jun 2022 07:57:32 +0200 Subject: [PATCH] Fix when used in dm --- commands/utility/download.js | 4 ++-- commands/utility/feedback.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/utility/download.js b/commands/utility/download.js index 5ff8d54..b61ed12 100644 --- a/commands/utility/download.js +++ b/commands/utility/download.js @@ -92,8 +92,8 @@ async function download(url, interaction) { let format = 'bestvideo*+bestaudio/best'; const Embed = new MessageEmbed() .setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY') - .setAuthor({ name: `Downloaded by ${interaction.member.displayName}`, iconURL: interaction.member.displayAvatarURL(), url: url }) - .setFooter({ text: `You can get the original video by clicking on the "Downloaded by ${interaction.member.displayName}" message!` }); + .setAuthor({ name: `Downloaded by ${interaction.user.tag}`, iconURL: interaction.member.avatarURL(), url: url }) + .setFooter({ text: `You can get the original video by clicking on the "Downloaded by ${interaction.user.tag}" message!` }); if (interaction.customId === 'downloadQuality') { format = interaction.values[0]; diff --git a/commands/utility/feedback.js b/commands/utility/feedback.js index 4a7bb10..7becef5 100644 --- a/commands/utility/feedback.js +++ b/commands/utility/feedback.js @@ -13,7 +13,7 @@ export default { .setRequired(true)), async execute(interaction) { const Embed = new MessageEmbed() - .setAuthor({ name: `${interaction.member.displayName} (${interaction.member.id})`, iconURL: interaction.member.displayAvatarURL() }) + .setAuthor({ name: `${interaction.user.tag} (${interaction.user.id})`, iconURL: interaction.member.displayAvatarURL() }) .setTimestamp(); if (interaction.guild) Embed.addField('Guild', `${interaction.guild.name} (${interaction.guild.id})`, true);