mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +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 otherChannelDM = msg.channel.id === call.origin.id ? false : Boolean(call.origin.guild);
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor(0x00AE86)
|
.setColor(0x00AE86)
|
||||||
.setThumbnail(otherChannel.guild.iconURL({ format: 'png' }))
|
.setThumbnail(otherChannelDM
|
||||||
|
? call.origin.startUser.displayAvatarURL({ format: 'png' })
|
||||||
|
: otherChannel.guild.iconURL({ format: 'png' }))
|
||||||
.addField('❯ Recipient Channel',
|
.addField('❯ Recipient Channel',
|
||||||
otherChannelDM ? `@${call.origin.startUser.tag}` : `#${otherChannel.name}`, true)
|
otherChannelDM ? `@${call.origin.startUser.tag}` : `#${otherChannel.name}`, true)
|
||||||
.addField('❯ Recipient Server', otherChannelDM ? 'DM' : otherChannel.guild.name, true)
|
.addField('❯ Recipient Server', otherChannelDM ? 'DM' : otherChannel.guild.name, true)
|
||||||
|
|||||||
Reference in New Issue
Block a user