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

8 lines
348 B
JavaScript

import { ChatInputCommandInteraction, SlashCommandBuilder } from 'discord.js';
export const data = new SlashCommandBuilder().setName('ping').setDescription('Replies with Pong!');
/** @param {ChatInputCommandInteraction} interaction */
export async function execute(interaction) {
await interaction.reply({ content: 'Pong!', ephemeral: true });
}