From 7b08dad07ed9d0ed26b1e1378feb3990faa15988 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Thu, 30 Dec 2021 01:45:44 -0700 Subject: [PATCH] watched list pfp bug --- commands/anime/watched.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/anime/watched.js b/commands/anime/watched.js index a940cd8..1ab89bc 100644 --- a/commands/anime/watched.js +++ b/commands/anime/watched.js @@ -32,7 +32,10 @@ module.exports = { s += `**${x + (i * 10) + 1}.** ${client.misc.cache.animeID.get(af.watched[(i * 10) + x])}\n`; } pages.push(new Discord.MessageEmbed() - .setAuthor({name: message.guild ? message.guild.members.cache.get(user.id).displayName : user.username, iconURL: message.author.displayAvatarURL({dynamic: true})}) + .setAuthor({ + name: message.guild ? message.guild.members.cache.get(user.id).displayName : user.username, + iconURL: message.guild ? message.guild.members.cache.get(user.id).displayAvatarURL({dynamic: true}) : user.displayAvatarURL({dynamic: true}) + }) .setTitle("Finished Anime List") .setDescription(s) .setColor('c375f0')