From e6c3246dbea8b110d997ea58fc24125f91519c7b Mon Sep 17 00:00:00 2001 From: Alex Brow Date: Sun, 22 Mar 2020 23:15:09 -0400 Subject: [PATCH] egg --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 13077c0..67715f2 100755 --- a/src/index.js +++ b/src/index.js @@ -67,7 +67,7 @@ client.on("message", async message => { // Calculates ping between sending a message and editing it, giving a nice round-trip latency. // The second ping is an average latency between the bot and the websocket server (one-way, not round-trip) const m = await message.channel.send("Ping?"); - m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms. API Latency is ${Math.round(WebSocketManager.ping)}ms`); + m.edit(`Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms. API Latency is ${Math.round(WebSocketShard.ping)}ms`); } if(command === "say") {