From 2fb6267dd9c6e297ea6d8e80fe825f4aab62fec6 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Thu, 2 Jul 2020 18:42:43 +0300 Subject: [PATCH] Update nowplaying.js --- src/commands/nowplaying.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/nowplaying.js b/src/commands/nowplaying.js index fd80c8de..0fe5bcf7 100644 --- a/src/commands/nowplaying.js +++ b/src/commands/nowplaying.js @@ -23,6 +23,7 @@ module.exports = { for (let i = 0; i < barlength - completedpercent - 1; i++) { array.push("⎯"); } + const thumbnail = queue.songs[0].info.thumbnail.thumbnails[4] || queue.songs[0].info.thumbnail.thumbnails[3] || queue.songs[0].info.thumbnail.thumbnails[2] || queue.songs[0].info.thumbnail.thumbnails[1] || queue.songs[0].info.thumbnail.thumbnails[0]; const embed = new Discord.MessageEmbed() .setTitle(client.messages.nowPlaying) .setDescription( @@ -35,7 +36,7 @@ module.exports = { ) .setFooter(`Queued by ${queue.songs[0].author.tag}`) .setURL(queue.songs[0].url) - .setThumbnail(queue.songs[0].info.thumbnail.thumbnails[4].url || queue.songs[0].info.thumbnail.thumbnails[3].url || queue.songs[0].info.thumbnail.thumbnails[2].url || queue.songs[0].info.thumbnail.thumbnails[1].url || queue.songs[0].info.thumbnail.thumbnails[0].url) + .setThumbnail(thumbnail.url) .setColor(client.config.embedColor); if (queue.nigthCore) embed.setDescription(