wavelink.Node() is not iterable #296
-
With wavelink v3 and going from NodePool to Pool, nodes are required to be iterable. node = wavelink.Node(
identifier=None,
uri='http://192.168.178.xxx:2333',
password='xxx'
)
await wavelink.Pool.connect(
nodes=[node],
client=self.bot
) |
Beta Was this translation helpful? Give feedback.
Answered by
chillymosh
Apr 4, 2024
Replies: 1 comment 3 replies
-
@ahryoo What is the point you are trying to get at? You can have multiple Node objects in the list assigned to nodes. e.g. node = wavelink.Node(
uri='http://192.168.178.xxx:2333',
password='xxx'
)
node2 = wavelink.Node(
uri='http://some.url.com:2333',
password='xxx'
)
await wavelink.Pool.connect(
nodes=[node, node2],
client=self.bot
) I don't understand why you think a Node object would be iterable? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That annotation means that nodes is an iterarable that contains Nodes, not Node is an iterable