9 lines
405 B
JavaScript
9 lines
405 B
JavaScript
|
const client = require("../utils/client.js");
|
||
|
|
||
|
exports.run = async (message) => {
|
||
|
const pingMessage = await client.createMessage(message.channel.id, "🏓 Ping?");
|
||
|
return pingMessage.edit(`🏓 Pong! Latency is ${pingMessage.timestamp - message.timestamp}ms. API Latency is ${Math.round(client.shards.get(client.guildShardMap[message.channel.guild.id]).latency)}ms.`);
|
||
|
};
|
||
|
|
||
|
exports.aliases = ["pong"];
|