lavalink-client 2.0.0 → 2.0.1

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.
@@ -103,7 +103,7 @@ class LavalinkNode {
103
103
  */
104
104
  async request(endpoint, modify, parseAsText = false) {
105
105
  const { request, options } = await this.rawRequest(endpoint, modify);
106
- if (options.method === "DELETE")
106
+ if (["DELETE", "PUT"].includes(options.method))
107
107
  return;
108
108
  if (request.statusCode === 404)
109
109
  throw new Error(`Node Request resulted into an error, request-PATH: ${options.path} | headers: ${JSON.stringify(request.headers)}`);
@@ -99,7 +99,7 @@ export class LavalinkNode {
99
99
  */
100
100
  async request(endpoint, modify, parseAsText = false) {
101
101
  const { request, options } = await this.rawRequest(endpoint, modify);
102
- if (options.method === "DELETE")
102
+ if (["DELETE", "PUT"].includes(options.method))
103
103
  return;
104
104
  if (request.statusCode === 404)
105
105
  throw new Error(`Node Request resulted into an error, request-PATH: ${options.path} | headers: ${JSON.stringify(request.headers)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lavalink-client",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Easy, flexible and feature-rich lavalink@v4 Client. Both for Beginners and Proficients.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",