DisKan/slash/ping.js
2022-02-21 02:28:37 +00:00

20 lines
629 B
JavaScript

exports.run = async (client, interaction) => { // eslint-disable-line no-unused-vars
// await interaction.deferReply();
// const reply = await interaction.editReply("Ping?");
// await interaction.editReply(`Pong! Latency is ${reply.createdTimestamp - interaction.createdTimestamp}ms. API Latency is ${Math.round(client.ws.ping)}ms.`);
}
exports.commandData = {
name: "ping",
description: "Pongs when pinged.",
options: [],
defaultPermission: true,
};
// Set guildOnly to true if you want it to be available on guilds only.
// Otherwise false is global.
exports.conf = {
permLevel: "User",
guildOnly: false
};