14 lines
326 B
TypeScript
14 lines
326 B
TypeScript
import { SlashCommandBuilder } from "discord.js";
|
|
import type { Command } from "../command";
|
|
|
|
const command: Command = {
|
|
data: new SlashCommandBuilder()
|
|
.setName("ping")
|
|
.setDescription("Replies with Pong!"),
|
|
execute: async (interaction) => {
|
|
await interaction.reply("Pong!");
|
|
},
|
|
};
|
|
|
|
export default command;
|