#Already connected to a voice channel

1 messages · Page 1 of 1 (latest)

oblique thistle
#
try:
  await VoiceChannel.connect(timeout=10, reconnect=True)
except discord.ClientException as ex:
  print(f'CAUGHT ClientException ERROR (1st spot): {str(ex)}, sleep 5')

There are more conditions prior to connect, and bot will be able to connect and disconnect cleanly. But for some discord servers the voice state gets stuck and won't be able to connect or play after this error occurs. Any way to reset just this guild cached voice connection?

#

After ctrl+c to restart the bot. This red error text shows