File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/website/docs/guide/02-commands Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ message commands in favor of the more modern
20
20
21
21
Message commands, like all the other command types, live in your
22
22
` src/app/commands ` directory. To let CommandKit know that this is a
23
- message command, just export the ` messageCommand ` function.
23
+ message command, just export the ` message ` function.
24
24
25
25
``` ts title="src/app/commands/ping.ts"
26
26
import type { CommandData , MessageCommand } from ' commandkit' ;
@@ -29,7 +29,7 @@ export const command: CommandData = {
29
29
name: ' ping' ,
30
30
};
31
31
32
- export const messageCommand : MessageCommand = async (ctx ) => {
32
+ export const message : MessageCommand = async (ctx ) => {
33
33
await ctx .message .reply (' Pong!' );
34
34
};
35
35
```
@@ -57,7 +57,7 @@ export const command: CommandData = {
57
57
name: ' ping' ,
58
58
};
59
59
60
- export const messageCommand : MessageCommand = async (ctx ) => {
60
+ export const message : MessageCommand = async (ctx ) => {
61
61
const args = ctx .message .args (); // string[]
62
62
};
63
63
```
You can’t perform that action at this time.
0 commit comments