Skip to content

Commit 2c4928c

Browse files
committed
fix message command function name
1 parent 9770553 commit 2c4928c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/website/docs/guide/02-commands/04-message-commands.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ message commands in favor of the more modern
2020

2121
Message commands, like all the other command types, live in your
2222
`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.
2424

2525
```ts title="src/app/commands/ping.ts"
2626
import type { CommandData, MessageCommand } from 'commandkit';
@@ -29,7 +29,7 @@ export const command: CommandData = {
2929
name: 'ping',
3030
};
3131

32-
export const messageCommand: MessageCommand = async (ctx) => {
32+
export const message: MessageCommand = async (ctx) => {
3333
await ctx.message.reply('Pong!');
3434
};
3535
```
@@ -57,7 +57,7 @@ export const command: CommandData = {
5757
name: 'ping',
5858
};
5959

60-
export const messageCommand: MessageCommand = async (ctx) => {
60+
export const message: MessageCommand = async (ctx) => {
6161
const args = ctx.message.args(); // string[]
6262
};
6363
```

0 commit comments

Comments
 (0)