generated from lucxjo/template
Add Discordx init
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
6c9841ced0
commit
429504787a
9 changed files with 874 additions and 0 deletions
10
src/commands/slashes.ts
Normal file
10
src/commands/slashes.ts
Normal 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!");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue