Fix bad voice state when moving to a voice channel without permissions

This commit is contained in:
Imayhaveborkedit
2023-10-01 17:45:55 -04:00
committed by GitHub
parent ebe2661f7d
commit e1aa6cc264
2 changed files with 20 additions and 5 deletions

View File

@ -355,8 +355,7 @@ class VoiceClient(VoiceProtocol):
asyncio.TimeoutError
The move did not complete in time, but may still be ongoing.
"""
await self._connection.move_to(channel)
await self._connection.wait_async(timeout)
await self._connection.move_to(channel, timeout)
def is_connected(self) -> bool:
"""Indicates if the voice client is connected to voice."""