We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f4b9c commit 0a9d61fCopy full SHA for 0a9d61f
README.md
@@ -5,24 +5,31 @@ Create Discord Bot with ease and simplicity.
5
## Examples
6
7
#### Command
8
+
9
`commands/ping.ts`
10
11
```ts
12
import { defineCommand } from '@harmonix-js/core'
13
-export default defineCommand({
- description: 'Ping command'
14
-}, (client, message) => {
15
- message.reply('Pong!')
16
-})
+export default defineCommand(
+ {
+ description: 'Ping command'
17
+ },
18
+ (client, message) => {
19
+ message.reply('Pong!')
20
+ }
21
+)
22
```
23
24
#### Event
25
26
`events/ready.ts`
27
28
29
import { defineEvent } from '@harmonix-js/core'
30
31
export default defineEvent((client) => {
- console.log('Bot is ready!')
32
+ console.log('Bot is ready!')
33
})
34
35
0 commit comments