From 6c8d1bc44c6c582b57ba587532b512b5d4e2ed6a Mon Sep 17 00:00:00 2001 From: DjDeveloper <43033058+DjDeveloperr@users.noreply.github.com> Date: Thu, 17 Dec 2020 14:29:36 +0530 Subject: [PATCH] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3bdbaa0..767b21b 100644 --- a/README.md +++ b/README.md @@ -101,10 +101,10 @@ client.commands.add(PingCommand) client.connect('super secret token comes here', Intents.All) ``` -Or with Decorator! +Or with Decorators! ```ts import { - CommandClient, + Client, event, Intents, command, @@ -132,10 +132,9 @@ class MyClient extends CommandClient { // Connect to gateway // Replace with your bot's token and intents (Intents.All, Intents.None, Intents.Presence, Intents.GuildMembers) -client.connect('super secret token comes here', Intents.All) +new MyClient().connect('super secret token comes here', Intents.All) ``` - ## Docs Documentation is available for `main` (branch) and `stable` (release).