@jnode/discord 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/client.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnode/discord",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Simple Discord API package for Node.js.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/client.js CHANGED
@@ -93,7 +93,7 @@ class DiscordClient {
93
93
  const res = await request.request(method, this.apiUrl(path), {
94
94
  'Authorization': `Bot ${this.token}`,
95
95
  'User-Agent': 'DiscordBot',
96
- 'Content-Type': 'multipart/form-data; boundary=----JustDiscordFormBoundary'
96
+ 'Content-Type': 'multipart/form-data; boundary=----JustRequestFormBoundary'
97
97
  }, request.generateMultipartBody(parts)); //make an request
98
98
 
99
99
  if ((res.code === 429) && this.apiAutoRetry) { //retry if recieved 429