guilds.js 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -1
- package/package.json +2 -1
- package/public/logo.png +0 -0
package/README.md
CHANGED
|
@@ -25,7 +25,22 @@ bun add guilds.js
|
|
|
25
25
|
## Example
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
|
-
|
|
28
|
+
import { Client } from "guilds.js";
|
|
29
|
+
|
|
30
|
+
const client = new Client({
|
|
31
|
+
// https://discord.com/developers/applications
|
|
32
|
+
token: "bot token",
|
|
33
|
+
|
|
34
|
+
// client intents (as a number)
|
|
35
|
+
intents: 0,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
client.once("ready", () => {
|
|
39
|
+
console.log("Client is ready!");
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// start connection to Discord gateway
|
|
43
|
+
client.connect();
|
|
29
44
|
```
|
|
30
45
|
|
|
31
46
|
# Contributing
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "guilds.js",
|
|
3
3
|
"description": "Interact with Discord's API with ease",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"exports": {
|
|
7
7
|
"default": "./dist/index.cjs",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"dist",
|
|
24
24
|
"LICENSE",
|
|
25
25
|
"package.json",
|
|
26
|
+
"public/logo.png",
|
|
26
27
|
"README.md"
|
|
27
28
|
],
|
|
28
29
|
"keywords": [
|
package/public/logo.png
ADDED
|
Binary file
|