DisKan/slash/ping.js

20 lines
629 B
JavaScript
Raw Permalink Normal View History

2022-01-24 14:05:30 -05:00
exports.run = async (client, interaction) => { // eslint-disable-line no-unused-vars
2022-02-20 21:28:37 -05:00
// 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.`);
}
2022-01-24 14:05:30 -05:00
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
};