lavalink-client 2.4.6 → 2.4.7
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.
|
@@ -754,9 +754,7 @@ class LavalinkNode {
|
|
|
754
754
|
if (!this.info.plugins.find(v => v.name === "lavasrc-plugin") &&
|
|
755
755
|
!this.info.plugins.find(v => v.name === "java-lyrics-plugin"))
|
|
756
756
|
throw new RangeError(`there is no lyrics source (via lavasrc-plugin / java-lyrics-plugin) available in the lavalink node (required for lyrics): ${this.id}`);
|
|
757
|
-
return await this.request(`/sessions/${this.sessionId}/players/${guildId}/
|
|
758
|
-
options.method = "DELETE";
|
|
759
|
-
});
|
|
757
|
+
return await this.request(`/sessions/${this.sessionId}/players/${guildId}/unsubscribe`);
|
|
760
758
|
},
|
|
761
759
|
};
|
|
762
760
|
/**
|
|
@@ -750,9 +750,7 @@ export class LavalinkNode {
|
|
|
750
750
|
if (!this.info.plugins.find(v => v.name === "lavasrc-plugin") &&
|
|
751
751
|
!this.info.plugins.find(v => v.name === "java-lyrics-plugin"))
|
|
752
752
|
throw new RangeError(`there is no lyrics source (via lavasrc-plugin / java-lyrics-plugin) available in the lavalink node (required for lyrics): ${this.id}`);
|
|
753
|
-
return await this.request(`/sessions/${this.sessionId}/players/${guildId}/
|
|
754
|
-
options.method = "DELETE";
|
|
755
|
-
});
|
|
753
|
+
return await this.request(`/sessions/${this.sessionId}/players/${guildId}/unsubscribe`);
|
|
756
754
|
},
|
|
757
755
|
};
|
|
758
756
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lavalink-client",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.7",
|
|
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",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"homepage": "https://tomato6966.github.io/lavalink-client/",
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@eslint/eslintrc": "^3.2.0",
|
|
62
|
-
"@eslint/js": "^9.
|
|
63
|
-
"@types/node": "^22.
|
|
64
|
-
"@types/ws": "^8.5.
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
66
|
-
"@typescript-eslint/parser": "^8.
|
|
67
|
-
"eslint": "^9.
|
|
62
|
+
"@eslint/js": "^9.19.0",
|
|
63
|
+
"@types/node": "^22.12.0",
|
|
64
|
+
"@types/ws": "^8.5.14",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^8.22.0",
|
|
66
|
+
"@typescript-eslint/parser": "^8.22.0",
|
|
67
|
+
"eslint": "^9.19.0",
|
|
68
68
|
"tsc-alias": "^1.8.10",
|
|
69
69
|
"typescript": "^5.7.3"
|
|
70
70
|
},
|