Show heartbeat ping again ( should have done it when i switched to djs 12 )

This commit is contained in:
loicbersier 2019-12-22 21:25:23 +01:00
parent 7e105b5626
commit 4c04df0333

View file

@ -24,7 +24,7 @@ class PingCommand extends Command {
if (args.lazyping) return message.channel.send('Ping him yourself you lazy ass'); if (args.lazyping) return message.channel.send('Ping him yourself you lazy ass');
return message.util.reply('Pong!').then(sent => { return message.util.reply('Pong!').then(sent => {
const timeDiff = (sent.editedAt || sent.createdAt) - (message.editedAt || message.createdAt); const timeDiff = (sent.editedAt || sent.createdAt) - (message.editedAt || message.createdAt);
const text = `🔂\u2000**PING**: ${timeDiff} ms`; const text = `🔂\u2000**RTT**: ${timeDiff} ms\n💟\u2000**Heartbeat**: ${Math.round(this.client.ws.ping)} ms`;
return message.util.reply(`Pong!\n${text}`); return message.util.reply(`Pong!\n${text}`);
}); });
} }