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
2020
2121Message 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"
2626import 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```
You can’t perform that action at this time.
0 commit comments