You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.
If Manager is not connected to any node, player.create() throws "No available nodes." which is cool, but is there a way to catch this and try to connect to nodes, like init() again once before telling the server users that music nodes are down?
Thanks
The text was updated successfully, but these errors were encountered:
If Manager is not connected to any node, or player.create() throws "No available nodes." which is cool, but is there a way to catch this and try to connect to nodes, like init() again once before telling the server users that music nodes are down?
Using something like <Player>.connect() can cause the same issue, and if a lavalink server is not running or having issues while connecting, this trick won't going to work. You better wait until it connects to the node.
Or if you want explicitly handle this error, use nodejs build-in process API, process.on(..., (f) => cb(f)); https://nodejs.org/api/process.html
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
If Manager is not connected to any node, player.create() throws "No available nodes." which is cool, but is there a way to catch this and try to connect to nodes, like init() again once before telling the server users that music nodes are down?
Thanks
The text was updated successfully, but these errors were encountered: