mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-04-02 09:44:14 +00:00
15 lines
No EOL
379 B
TypeScript
15 lines
No EOL
379 B
TypeScript
import { SlashCommandBuilder } from 'discord.js';
|
|
|
|
interface Command {
|
|
data: SlashCommandBuilder;
|
|
execute: (interaction: any) => Promise<void>;
|
|
}
|
|
|
|
export const command: Command = {
|
|
data: new SlashCommandBuilder().setName('ping').setDescription('Replies with Pong!'),
|
|
execute: async (interaction) => {
|
|
await interaction.reply('Pong!');
|
|
},
|
|
};
|
|
|
|
export default command; |