fixed the ping command

This commit is contained in:
Alex 2020-07-10 20:15:30 -05:00
parent deb0118652
commit e2b95f5aec
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ client.on("message", async message => {
if(command === "ping") { if(command === "ping") {
// Calculates ping between sending a message and editing it, giving a nice round-trip latency. // Calculates ping between sending a message and editing it, giving a nice round-trip latency.
const m = await message.channel.send("Ping?"); const m = await message.channel.send("Ping?");
m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms`); m.edit(`Pong! Latency is ${client.ws.ping}ms`);
} }
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//HOW QUOTEABLE //HOW QUOTEABLE