Creates a new slash command
The options for the command
The callback for the command
module.exports.default = new SlashCommand({
data: {
name: 'ping',
description: 'Shows the bot latency'
},
cooldownSeconds: 2
}, async (client, interaction) => {
await interaction.reply(`🏓 Pong! ${client.ws.ping}ms`);
});
module.exports.default = new SlashCommand({
data:
new SlashCommandBuilder()
.setName('ping')
.setDescription('Shows the bot latency'),
cooldownSeconds: 2
}, async (client, interaction) => {
await interaction.reply(`🏓 Pong! ${client.ws.ping}ms`);
});
The callback for the command
The cooldowns for this command
The options for the command
Generated using TypeDoc
Represents a slash command