From f30a373da63627638a05e3635f77c58087febfe6 Mon Sep 17 00:00:00 2001 From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com> Date: Mon, 14 Feb 2022 16:45:44 +0300 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c8b1e8e..26652c9 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,8 @@ yarn add sern-handler TypeScript or JavaScript ```js import { Client, Intents } from 'discord.js'; -import { prefix, token } from '../src/secrets.json'; import { Handler } from 'sern-handler'; +import { prefix, token } from '../src/secrets.json'; const client = new Client({ intents: [ @@ -30,14 +30,15 @@ const client = new Client({ ] }); - new Handler( { +// Access handler anywhere +client.handler = new Handler({ client, prefix, - commands : "dist/commands", + commands : 'dist/commands', privateServers : [ { test : true, - id: "server id" + id: 'server-id' } ], init: async (handler : Sern.Handler) => {