aqualink 2.20.0 → 3.0.0
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/README.md +174 -184
- package/build/handlers/autoplay.js +5 -1
- package/build/structures/Aqua.js +226 -539
- package/build/structures/AquaRecovery.js +901 -0
- package/build/structures/Connection.js +72 -261
- package/build/structures/ConnectionRecovery.js +398 -0
- package/build/structures/Filters.js +93 -12
- package/build/structures/Node.js +93 -54
- package/build/structures/Player.js +284 -337
- package/build/structures/PlayerLifecycle.js +575 -0
- package/build/structures/PlayerLifecycleState.js +42 -0
- package/build/structures/Reporting.js +32 -0
- package/build/structures/Rest.js +25 -2
- package/build/structures/Track.js +2 -2
- package/package.json +1 -1
|
@@ -65,7 +65,7 @@ class Track {
|
|
|
65
65
|
|
|
66
66
|
const platform =
|
|
67
67
|
opts.platform || aqua?.options?.defaultSearchPlatform || 'ytsearch'
|
|
68
|
-
const node = opts.node || this.node || this.nodes
|
|
68
|
+
const node = opts.nodes || opts.node || this.node || this.nodes
|
|
69
69
|
|
|
70
70
|
let query = this.uri
|
|
71
71
|
if (!query) {
|
|
@@ -83,7 +83,7 @@ class Track {
|
|
|
83
83
|
if (!query) return null
|
|
84
84
|
|
|
85
85
|
const payload = { query, source: platform, requester: this.requester }
|
|
86
|
-
if (node) payload.
|
|
86
|
+
if (node) payload.nodes = node
|
|
87
87
|
|
|
88
88
|
let result
|
|
89
89
|
try {
|