er/src/commands/slashes.ts
Louis Hollingworth 429504787a
Add Discordx init
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
2023-05-02 19:59:36 +01:00

10 lines
252 B
TypeScript

import type { CommandInteraction } from "discord.js";
import { Discord, Slash } from "discordx";
@Discord()
export class Example {
@Slash({ description: "ping" })
ping(interaction: CommandInteraction): void {
interaction.reply("pong!");
}
}