From 2a450aa49044bf42509dcff15b0628d351a50d10 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 1 Dec 2020 20:57:06 -0500 Subject: [PATCH] Fix --- commands/phone/phone-info.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/phone/phone-info.js b/commands/phone/phone-info.js index 8c12dfe9..c8825f1b 100644 --- a/commands/phone/phone-info.js +++ b/commands/phone/phone-info.js @@ -22,7 +22,9 @@ module.exports = class PhoneInfoCommand extends Command { const otherChannelDM = msg.channel.id === call.origin.id ? false : Boolean(call.origin.guild); const embed = new MessageEmbed() .setColor(0x00AE86) - .setThumbnail(otherChannel.guild.iconURL({ format: 'png' })) + .setThumbnail(otherChannelDM + ? call.origin.startUser.displayAvatarURL({ format: 'png' }) + : otherChannel.guild.iconURL({ format: 'png' })) .addField('❯ Recipient Channel', otherChannelDM ? `@${call.origin.startUser.tag}` : `#${otherChannel.name}`, true) .addField('❯ Recipient Server', otherChannelDM ? 'DM' : otherChannel.guild.name, true)