Skip to content

DisTube#play doesn't join another voice channel #240

Answered by skick1234
extrymes asked this question in Q&A
Discussion options

You must be logged in to vote

I forgot this case too.

It only joins a voice channel if DisTube hasn't joined any voice channel. When your bot is in a voice channel, distube (@discordjs/voice) still manages the connection even if it doesn't play anything. To end the connection, you have to use #leave method. And to change the channel, you have to use #join method (or @discordjs/voice method too).

I know the behavior is not documented clearly. Will improve it when I have time.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by skick1234
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #239 on February 12, 2022 08:14.