Add Discordx init

Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
Louis Hollingworth 2023-05-02 19:59:36 +01:00
parent 6c9841ced0
commit 429504787a
Signed by: lucxjo
GPG key ID: B140F8923EF88DA9
9 changed files with 874 additions and 0 deletions

10
src/commands/slashes.ts Normal file
View file

@ -0,0 +1,10 @@
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!");
}
}