DiscordJS-Example/commands/examples/ping.example.js
2024-01-26 13:28:02 +00:00

7 lines
263 B
JavaScript

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 });
}