feat: update example

This commit is contained in:
Jacob Nguyen
2022-08-10 23:44:53 -05:00
committed by GitHub
parent 8a7a671300
commit 0da1b5a4dc

View File

@@ -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