-
Heya I don't really know where to ask this, so I figured might as well give it a shot here. I cannot for the life of me figure out how to make my bot leave the darn voice channel it is in, as your tutorial conveniently leaves that part out and the only code I've managed to find that successfully disconnect from voice are from back in 2.x.x. Please, someone take pity upon my noobedness. Help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I mean I've figured out how to just make the bot crash anytime anyone sends any type of text input to any text channel. But like I don't know man. |
Beta Was this translation helpful? Give feedback.
-
Aight, got it So instead of setting up an extra leave command, i just checked within the join command, whether any message in the text channel equals the leave command, allowing me to reference the connection variable made when joining by virtue of being within the same function. just be sure not to do that in a while loop, you'll open all the threads your cpu can do without an killing itself horribly ok bye |
Beta Was this translation helpful? Give feedback.
Aight, got it
So instead of setting up an extra leave command, i just checked within the join command, whether any message in the text channel equals the leave command, allowing me to reference the connection variable made when joining by virtue of being within the same function.
just be sure not to do that in a while loop, you'll open all the threads your cpu can do without an killing itself horribly
ok bye