const { EmbedBuilder } = require('discord.js'); module.exports = { name: 'ping', description: '🏓Check my ping!', run: async (client, interaction) => { let pembed = new EmbedBuilder() .setTitle("Pong!") .setColor('#2F3136') .setThumbnail('https://ellie.gcoms.xyz/Ellise.png') .addFields({name: '**Latency**', value: `\`\`\`ini\n[ ${Date.now() - interaction.createdTimestamp}ms ]\n\`\`\``, inline: true}, {name: '**API Latency**', value: `\`\`\`ini\n[ ${Math.round(client.ws.ping)}ms ]\n\`\`\``, inline: true}) .setTimestamp() .setFooter({ text: `©️ Holana`, iconURL: ('https://ellie.gcoms.xyz/Ellise.png') }) interaction.reply({ embeds: [pembed] }); }, };