@jnode/discord 1.0.17 → 1.0.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnode/discord",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Simple Discord API package for Node.js.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/client.js CHANGED
@@ -99,7 +99,7 @@ class DiscordClient {
99
99
 
100
100
  if ((res.statusCode === 429) && this.apiAutoRetry) { //retry if recieved 429
101
101
  await delay(res.json().retry_after);
102
- return this.apiRequest(method, path, body, multipart, true);
102
+ return this.apiRequestMultipart(method, path, body, attachments);
103
103
  }
104
104
 
105
105
  if (((res.statusCode > 299) || (res.statusCode < 200)) && this.apiThrowError) { //throw error if not 2xx
package/src/index.js CHANGED
@@ -8,9 +8,6 @@ Must use Node.js v22.4.0 or later for WebSocket (Discord gateway).
8
8
  by JustNode Dev Team / JustApple
9
9
  */
10
10
 
11
- //load node packages
12
- const EventEmitter = require('events');
13
-
14
11
  module.exports = {
15
12
  Client: require('./client.js'),
16
13
  Gateway: require('./gateway.js')