title: Discord.js Ping Command
body: <p>I was trying to make a ping command for my bot here is my Code</p>
  <pre><code>client.on('message', message =&gt; {
    if (message.content === '+ping') {  
      message.channel.send(`Latency is ${m.createdTimestamp - message.createdTimestamp}ms. API Latency is ${Math.round(client.ws.ping)}ms`);
    }
  });
  </code></pre>
  <p>However I end up getting the following error</p>
  <pre><code>C:\Users\ujjwa\Desktop\All Disc\Test all\index.js:236
      message.channel.send(`Latency is ${m.createdTimestamp - message.createdTimestamp}ms. API Latency is ${Math.round(client.ws.ping)}ms`);
                                       ^
  
  ReferenceError: m is not defined
      at Client.&lt;anonymous&gt; (C:\Users\lol\Desktop\All Disc\Test all\index.js:236:42)
      at Client.emit (events.js:327:22)
      at MessageCreateAction.handle (C:\Users\lol\Desktop\All Disc\Test all\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
      at Object.module.exports [as MESSAGE_CREATE] (C:\Users\lol\Desktop\All Disc\Test all\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
      at WebSocketManager.handlePacket (C:\Users\lol\Desktop\All Disc\Test all\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31)
      at WebSocketShard.onPacket (C:\Users\lol\Desktop\All Disc\Test all\node_modules\discord.js\src\client\websocket\WebSocketShard.js:436:22)
      at WebSocketShard.onMessage (C:\Users\lol\Desktop\All Disc\Test all\node_modules\discord.js\src\client\websocket\WebSocketShard.js:293:10)
      at WebSocket.onMessage (C:\Users\lol\Desktop\All Disc\Test all\node_modules\ws\lib\event-target.js:125:16)
      at WebSocket.emit (events.js:315:20)
      at Receiver.receiverOnMessage (C:\Users\lol\Desktop\All Disc\Test all\node_modules\ws\lib\websocket.js:797:20)
  </code></pre>
  <p>Can you help me out?</p>