@stoatx/client 0.6.3 → 0.6.4
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/dist/index.cjs +0 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1344,13 +1344,6 @@ var RESTManager = class {
|
|
|
1344
1344
|
this.client.emit("debug", `Bucket [${method}:${endpoint}] exhausted. Waiting ${waitTime}ms proactively...`);
|
|
1345
1345
|
await sleep(waitTime);
|
|
1346
1346
|
}
|
|
1347
|
-
const headers = {
|
|
1348
|
-
"X-Bot-Token": this.token
|
|
1349
|
-
};
|
|
1350
|
-
if (body) {
|
|
1351
|
-
headers["Content-Type"] = "application/json";
|
|
1352
|
-
}
|
|
1353
|
-
console.log("FETCH", method.toUpperCase(), url, JSON.stringify(body));
|
|
1354
1347
|
const response = await fetch(url, {
|
|
1355
1348
|
method: method.toUpperCase(),
|
|
1356
1349
|
headers: {
|