Files
dj-spangebob/src/commands/ping.ts
2025-12-26 18:31:14 +01:00

21 lines
453 B
TypeScript

import { CacheType, ChatInputCommandInteraction, SlashCommandBuilder } from 'discord.js';
const name = "ping"
function register() {
return new SlashCommandBuilder()
.setName(name)
.setDescription('Replies with Pong!')
}
async function execute(interaction: ChatInputCommandInteraction<CacheType>) {
console.log(interaction.member)
await interaction.reply('Pong!');
}
export default {
name,
register,
execute
}