text: const { MessageEmbed } = require("discord.js");
  module.exports = {
    name: "ping",
    description: "Sends Bot ping and latency",
   run: async(client,message,args,guild) => {
         const embed = new MessageEmbed()
        .setDescription('`Pinging...`')
        .setColor(message.guild.me.displayHexColor);    
      const msg = await message.channel.send(embed);
      const timestamp = (message.editedTimestamp) ? message.editedTimestamp : message.createdTimestamp; // Check if edited
      const latency = `\`\`\`ini\n[ ${Math.floor(msg.createdTimestamp - timestamp)}ms ]\`\`\``;
      const apiLatency = `\`\`\`ini\n[ ${Math.round(message.client.ws.ping)}ms ]\`\`\``;
      embed.setTitle(`Pong! 🏓`)
        .setDescription('')
        .addField('Latency', latency, true)
        .addField('API Latency', apiLatency, true)
        .setFooter(message.member.displayName,  message.author.displayAvatarURL({ dynamic: true }))
        .setTimestamp();
        msg.edit(embed)
    }
  };
  