From 0da1b5a4dc6823807880ade03728b466fe895190 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Wed, 10 Aug 2022 23:44:53 -0500 Subject: [PATCH] feat: update example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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