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.
@@ -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.node = node
86
+ if (node) payload.nodes = node
87
87
 
88
88
  let result
89
89
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aqualink",
3
- "version": "2.20.0",
3
+ "version": "3.0.0",
4
4
  "description": "An Lavalink/Nodelink client, focused in pure performance and features",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",