We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1924c75 commit aade7aaCopy full SHA for aade7aa
1 file changed
src/commands/ping.ts
@@ -0,0 +1,17 @@
1
+import type { CommandInteraction, Message } from "discord.js";
2
+import type { SimpleCommandMessage } from "discordx";
3
+import {
4
+ Discord,
5
+ SimpleCommand,
6
+ SimpleCommandOption,
7
+ SimpleCommandOptionType,
8
+ Slash,
9
+} from "discordx";
10
+
11
+@Discord()
12
+export class Example {
13
+ @Slash({ description: "Pings the bot", name: "ping" })
14
+ hello(interaction: CommandInteraction) {
15
+ interaction.reply("Pong!")
16
+ }
17
+}
0 commit comments