zkyc
Version:
Discord command handler.
12 lines (9 loc) • 400 B
JavaScript
const Command = require("../Structures/Command.js");
module.exports = new Command({
name: "ping",
description: "Shows the ping of the bot.",
async run(message, args, client) {
const msg = await message.reply(`Ping: ${client.ws.ping} ms.`)
msg.edit(`Ping: ${client.ws.ping} ms.\nMessage Ping: ${msg.createdTimestamp - message.createdTimestamp} ms.`)
}
});