13 lines
367 B
TypeScript
13 lines
367 B
TypeScript
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js";
|
|
import { CommandDefinition } from "../../type";
|
|
|
|
const cmd : CommandDefinition = {
|
|
data: new SlashCommandBuilder()
|
|
.setName('ping')
|
|
.setDescription('Pong again!'),
|
|
async execute(interaction) {
|
|
await interaction.reply('Pong !');
|
|
}
|
|
}
|
|
|
|
export default cmd; |