const Command = require('../Command')

module.exports =
class PingCommand extends Command {
  constructor (client) {
    super(client, {
      name: 'ping',
      properName: 'Ping',
      description: 'Ping the bot to see API latency',
      userPermissions: [],
      throttling: { usages: 1, duration: 10 } // 1 usage every 10 seconds
    })
  }

  async fn (msg) {
    msg.channel.send('Pinging...').then(message => {
      message.edit(`:ping_pong: Pong! Took **${message.createdTimestamp - msg.createdTimestamp}ms**`)
    })
  }
}

@@ -358,24 +358,53 @@
  fn (msg) %7B%0A
+    const start = Date.now()%0A
     msg.chan
@@ -495,55 +495,35 @@
 **$%7B
-message.createdTimestamp - msg.createdTimestamp
+Math.ceil(Date.now - start)
 %7Dms*

Update PingCommand.js