From 29d92caa165cc45626da694b3a683d9b65d9e466 Mon Sep 17 00:00:00 2001
From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com>
Date: Thu, 17 Feb 2022 22:02:59 +0300
Subject: [PATCH] docs: Update readme code examples
---
README.md | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 3f28acb..ac49d3f 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Sern Handler
-
+
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! });
+ }
};
```