-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME.md
35 lines (21 loc) · 1.36 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## Discord API Wrapper for NodeJS
The -probably- hardest way to interact with Discord API while using a NodeJS library.
![GitHub stars](https://img.shields.io/github/stars/kedi/discordwrapper)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/kedi/discordwrapper)
![GitHub](https://img.shields.io/github/license/kedi/discordwrapper)
![GitHub package.json version](https://img.shields.io/github/package-json/v/kedi/discordwrapper)
![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/kedi/discordwrapper)
To start using this wrapper, install the library:
`npm install @kedi/[email protected]`
Bring the library & call the class into your code:
`const DiscordWrapper = require("@kedi/discordwrapper")`
`const client = new DiscordWrapper()`
Here you go, now you need to login to the client with your bot's token:
`client.login("token")`
Now you are all set. Please go to [docs](https://github.com/kedi/discordwrapper/tree/master/docs/Managers) in the repistory and see Managers for more info on how you can do stuff. If you are done here, your code should look like:
```js
const DiscordWrapper = require("@kedi/discordwrapper")
const client = new DiscordWrapper()
client.login("token")
```
If you have any questions, feel free to DM me via Discord [Toasty#0001](https://discord.com/users/478307244509888532)!