disgroove 1.2.0-dev.72d8656 → 1.2.0-dev.aa31016
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 +4 -16
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,27 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
An NPM package to interact with the Discord API
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
[**Node.js**](https://nodejs.org) v16 or higher required
|
|
8
8
|
|
|
9
9
|
```
|
|
10
10
|
npm install disgroove
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
const { Client } = require("disgroove");
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
- Create the client
|
|
20
|
-
|
|
21
|
-
```js
|
|
22
|
-
const client = new Client("token");
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### Example
|
|
13
|
+
## Example
|
|
26
14
|
|
|
27
15
|
```js
|
|
28
16
|
const {
|
|
@@ -64,7 +52,7 @@ client.on("interactionCreate", async (interaction) => {
|
|
|
64
52
|
content: "Pong! 🏓",
|
|
65
53
|
flags: MessageFlags.Ephemeral,
|
|
66
54
|
},
|
|
67
|
-
}); //
|
|
55
|
+
}); // Responds with an ephemeral message "Pong! 🏓"
|
|
68
56
|
}
|
|
69
57
|
});
|
|
70
58
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./rest"), exports);
|
|
18
18
|
__exportStar(require("./structures"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./types/index"), exports);
|
|
20
20
|
__exportStar(require("./utils"), exports);
|
|
21
21
|
__exportStar(require("./Client"), exports);
|
|
22
22
|
__exportStar(require("./constants"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+CAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+CAA6B;AAC7B,gDAA8B;AAC9B,0CAAwB;AACxB,2CAAyB;AACzB,8CAA4B"}
|