Skip to content

Commit aade7aa

Browse files
committed
feat: simple ping command
1 parent 1924c75 commit aade7aa

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/commands/ping.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)