Files
discordbot-ts-template/src/commands/utility/ping.ts

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;