mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user