Discord.js v14

This commit is contained in:
Dragon Fire
2024-04-07 19:06:19 -04:00
parent 58c81aa912
commit f59826f7ab
272 changed files with 893 additions and 656 deletions
+4 -4
View File
@@ -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)