Skip to content

Commit 97dceed

Browse files
committed
fix(docs): fix publishing plugin section
1 parent 0e8599d commit 97dceed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/docs/src/pages/guide/core-concepts/adding-commands.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Inside of the run function, you can use `interaction`, `client`, and `args`. (`a
3131

3232
### Publishing
3333

34-
To publish your command, add the `Plugins.Publish()` plugin from `@spark.ts/handler`.
34+
To publish your command, add the `Plugins.Publish()` plugin from `@spark.ts/handler` into the `initPlugins` option.
3535

3636
```ts
3737
import { SparkCommand, CommandType, Plugins } from '@spark.ts/handler';
@@ -40,7 +40,7 @@ export default new SparkCommand({
4040
type: CommandType.Slash, // you can also use 'slash'
4141
name: 'ping', // if you don't input this, it'll use the file name (ex: foo.ts -> 'foo')
4242
description: 'replies with pong', // if you don't input this, it'll use '...'
43-
plugins: [Plugins.Publish()],
43+
initPlugins: [Plugins.Publish()],
4444
run({ interaction, client }) {
4545
client.logger.debug('pong');
4646
interaction.reply('pong');

0 commit comments

Comments
 (0)