DiscordJS-Template/commands/examples/ping.example.js

8 lines
348 B
JavaScript
Raw Normal View History

2024-03-25 01:14:08 +00:00
import { ChatInputCommandInteraction, SlashCommandBuilder } from 'discord.js';
2024-01-13 16:05:16 +00:00
export const data = new SlashCommandBuilder().setName('ping').setDescription('Replies with Pong!');
2024-03-25 01:14:08 +00:00
/** @param {ChatInputCommandInteraction} interaction */
2024-01-13 16:05:16 +00:00
export async function execute(interaction) {
await interaction.reply({ content: 'Pong!', ephemeral: true });
}