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
When trying to connect to a channel, the bot will hang for some time, then disconnect.
Reproduction Steps
Make the bot connect to a voice channel
It doesn't work
Minimal Reproducible Code
@bot.slash_command(name="join", description="Tells the bot to join the voice channel.")asyncdefjoin(interaction: discord.Interaction) ->None:
user=interaction.userawaitinteraction.response.defer()
ifnotuser.voice:
awaitinteraction.followup.send(f"{user.name} is not connected to a voice channel.", ephemeral=True)
returnchannel=user.voice.channeltry:
awaitchannel.connect()
exceptExceptionase:
print(e)
awaitinteraction.followup.send(f"Connected to {channel.name}")
Expected Results
The bot connects to the voice channel
Actual Results
It connects, hangs there for some time then disconnects. Here is all that was outputted to the console:
Summary
When trying to connect to a channel, the bot will hang for some time, then disconnect.
Reproduction Steps
Minimal Reproducible Code
Expected Results
The bot connects to the voice channel
Actual Results
It connects, hangs there for some time then disconnects. Here is all that was outputted to the console:
(that's it, there was nothing else)
Intents
default, voice states and message content
System Information
Checklist
Additional Context
No response