diff --git a/Ep_02/index.js b/Ep_02/index.js index c5d0295..90b612d 100644 --- a/Ep_02/index.js +++ b/Ep_02/index.js @@ -45,7 +45,7 @@ client.on("message", async message => { const msg = await message.channel.send(`🏓 Pinging....`); // Edit the message - msg.edit(`🏓 Pong!\nLatency is ${Math.floor(msg.createdTimestap - message.createdTimestap)}ms\nAPI Latency is ${Math.round(client.ping)}ms`); + msg.edit(`🏓 Pong!\nLatency is ${Math.floor(msg.createdAt - message.createdAt)}ms\nAPI Latency is ${Math.round(client.ping)}ms`); } if (cmd === "say") {