mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Discord.js v14
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = class PhoneInfoCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -20,11 +20,11 @@ module.exports = class PhoneInfoCommand extends Command {
|
||||
if (!call.active) return msg.reply('☎️ This call is not currently active.');
|
||||
const otherChannel = msg.channel.id === call.origin.id ? call.recipient : call.origin;
|
||||
const otherChannelDM = msg.channel.id === call.origin.id ? false : !call.origin.guild;
|
||||
const embed = new MessageEmbed()
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(0x00AE86)
|
||||
.setThumbnail(otherChannelDM
|
||||
? call.startUser.displayAvatarURL({ format: 'png' })
|
||||
: otherChannel.guild.iconURL({ format: 'png' }))
|
||||
? call.startUser.displayAvatarURL({ extension: 'png' })
|
||||
: otherChannel.guild.iconURL({ extension: 'png' }))
|
||||
.addField('❯ Recipient Channel', otherChannelDM ? `@${call.startUser.tag}` : `#${otherChannel.name}`, true)
|
||||
.addField('❯ Recipient Server', otherChannelDM ? 'DM' : otherChannel.guild.name, true)
|
||||
.addField('❯ Recipient ID', otherChannel.id, true)
|
||||
|
||||
Reference in New Issue
Block a user