fixed embed

This commit is contained in:
supositware 2022-06-17 12:50:19 +02:00
parent 0c961df89b
commit 6fcd5e8d87

View file

@ -92,7 +92,7 @@ async function download(url, interaction) {
let format = 'bestvideo*+bestaudio/best'; let format = 'bestvideo*+bestaudio/best';
const Embed = new MessageEmbed() const Embed = new MessageEmbed()
.setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY') .setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY')
.setAuthor({ text: `Downloaded by ${interaction.member.displayName}`, iconURL: interaction.member.displayAvatarURL(), url: url }) .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!` }); .setFooter({ text: `You can get the original video by clicking on the "Downloaded by ${interaction.member.displayName}" message!` });
if (interaction.customId === 'downloadQuality') { if (interaction.customId === 'downloadQuality') {