16 lines
432 B
TypeScript
16 lines
432 B
TypeScript
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js";
|
|
import { Command } from "../../commands";
|
|
|
|
const builder = new SlashCommandBuilder()
|
|
.setName('ping')
|
|
.setDescription('Pong.');
|
|
|
|
const cmd: Command = {
|
|
name: builder.name,
|
|
builder: builder,
|
|
execute: async (interaction: ChatInputCommandInteraction): Promise<void> => {
|
|
interaction.reply('pong!');
|
|
}
|
|
};
|
|
|
|
export default cmd; |