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

7 lines
263 B
JavaScript
Raw Normal View History

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