diff --git a/README.md b/README.md index 3f28acb..ac49d3f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Sern Handler -NPM version NPM downloads Builds Passing +NPM version NPM downloads Builds Passing Sern can automate and streamline development of your discord bot with new version compatibility and full customization. @@ -55,17 +55,18 @@ client.login(token); #### ` ping.js ` ```js -import { Sern, Types } from "sern-handler"; -import { Ok } from "ts-results"; +import { Sern, Types } from 'sern-handler'; +import { Ok } from 'ts-results'; export default { alias: [], - desc : "ping pong", - visibility : "private", + desc : 'A ping pong command', + visibility : 'private', test : false, type: Sern.CommandType.SLASH | Sern.CommandType.TEXT, - execute : async ({message, interaction}, args) => "pong!" - + execute : async ({ message, interaction }, args) => { + interaction.reply({ content: 'Pong! }); + } }; ```