JohnTomah

Untitled

Mar 14th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. const Discord = require("discord.js"); // Defining Discord
  2.  
  3. module.exports.run = async (client, message, args) => { // Command Handler Module Code
  4. const m = await message.channel.send("ping");
  5.  
  6. let E = new Discord.RichEmbed() // Start of embed
  7. .setTitle("Pong! :stopwatch:") // Embed Title
  8. .addField("Latency", `${m.createdTimestamp - message.createdTimestamp}ms`) // Shows Latency
  9. .addField("API Latency", `${Math.round(client.ping)}ms`) // Shows API Latency
  10.  
  11. message.channel.send(E) // Sending the embed
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment