lavacord / Lavacord

A easy to use Lavalink client that can be used with any discord api wrapper
Apache License 2.0
79 stars 21 forks source link

Nodes is not iterable (told in the server) #2

Closed jj2neat closed 4 years ago

jj2neat commented 4 years ago

(node:3904) UnhandledPromiseRejectionWarning: TypeError: nodes is not iterable at new Manager (C:\Users\jnsho\node_modules\lavacord\dist\lib\Manager.js:17:28)

nodes =

[ { name: 'Node Test #1', host: 'localhost', port: 2333, password: 'youshallpass' } ]

jj2neat commented 4 years ago

(documentation was wrong) told me to do:

new manager(client, nodes, {}) turns out it was new manager(nodes, client, {})

MrJacz commented 4 years ago

there is no client so both are wrong its new Manager(nodes, options) so new Manager(nodes, { user: "bot user id", send: () => { // do stuff here }; }); which i have explained in discord