-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble playing audio after connecting to voice #9634
Comments
I'm not entirely sure why discord is sending a second @commands.command()
async def join(self, ctx):
if not ctx.voice:
await ctx.author.voice.channel.join() For reference, this is what my logs of connecting to voice look like.
|
@imayhaveborkedit Yes, it does. |
I believe this is occuring because you have 2 instances of your bot running with this same on_voice_state_update listener. |
@EvieePy I'm certain that I only have one instance running. |
That was the only way I was able to reproduce this issue so far. I will keep trying, but in the mean time, you could reset your bots tokens just to be certain, as this should disconnect any stray instances running. |
I think I can fix this specific issue for you but it's not much more than a band-aid fix unless I can figure out why you get two voice_server_update events. Regardless if multiple instances cause this issue for you or not, this wasn't something I tested when I wrote this code. One other question, is the token value in both of those voice_server_update payloads the same? |
@imayhaveborkedit Yes, it is. |
Any updates on this issue? I'm still able to reproduce it as of 425edd2. |
I am having this issue as well. |
I am also having this issue (Python 3.9.0, discord.py 2.0.1). Never seems to return from edit: ignore me, forcing discord.py to update to 2.3.2 via |
Summary
As of latest master, my bot can't connect to a voice channel and play audio. This works fine on 2.3.2.
Reproduction Steps
Commands.Cog
added.Minimal Reproducible Code
Expected Results
connect
returns avoice_client
with which I'm able to play audio.Actual Results
connect
never returns, and I get this debug log.Intents
System Information
Checklist
Additional Context
Discussion started at #9460 (comment).
The text was updated successfully, but these errors were encountered: