diff --git a/README.md b/README.md index 1458f63..a118454 100644 --- a/README.md +++ b/README.md @@ -52,13 +52,13 @@ client.login(token); ```js const { Sern, CommandType } = require('@sern/handler'); -exports.default = { +exports.default = commandModule({ description: 'A ping pong command', type: CommandType.Slash, execute(ctx) { ctx.reply('pong!'); } - }; + }); ``` See our [templates](https://github.com/sern-handler/templates) for TypeScript examples and more