add commands system
This commit is contained in:
7
src/cmd/ping.ts
Normal file
7
src/cmd/ping.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"
|
||||
|
||||
export const data = new SlashCommandBuilder().setName("ping").setDescription("Replies with Pong!")
|
||||
|
||||
export const exec = async (interaction: ChatInputCommandInteraction) => {
|
||||
await interaction.reply("Pong!")
|
||||
}
|
||||
Reference in New Issue
Block a user