mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
Trying to fix error
This commit is contained in:
parent
47cb9ec8f5
commit
97996a1647
@ -50,7 +50,8 @@ class VulkanInitializer:
|
||||
raise VulkanError(message='Failed to load some Cog')
|
||||
|
||||
except VulkanError as e:
|
||||
print(f'[Error Loading Vulkan] -> {e.message}')
|
||||
print(f'[Error Loading Vulkan]')
|
||||
print(e)
|
||||
|
||||
def __getTotalCogs(self) -> int:
|
||||
quant = 0
|
||||
|
||||
@ -334,6 +334,15 @@ class ThreadPlayer(Thread):
|
||||
async def __connectToVoiceChannel(self) -> bool:
|
||||
try:
|
||||
print('[CONNECTING TO VOICE CHANNEL]')
|
||||
# If the voiceChannel is not defined yet, like if the Bot is still loading, wait until we get the voiceChannel
|
||||
if self.__voiceChannel is None:
|
||||
while True:
|
||||
self.__voiceChannel = self.__bot.get_channel(self.__voiceChannelID)
|
||||
if self.__voiceChannel is None:
|
||||
await asyncio.sleep(0.2)
|
||||
else:
|
||||
break
|
||||
|
||||
if self.__voiceClient is not None:
|
||||
try:
|
||||
await self.__voiceClient.disconnect(force=True)
|
||||
|
||||
@ -116,7 +116,7 @@ class ThreadPlayerManager(Singleton, AbstractPlayersManager):
|
||||
else:
|
||||
voiceID: int = context.author.voice.channel.id
|
||||
|
||||
voiceChannel = self.__bot.get_channel(voiceID)
|
||||
voiceChannel = context.author.voice.channel
|
||||
|
||||
playlist = Playlist()
|
||||
lock = RLock()
|
||||
@ -144,7 +144,7 @@ class ThreadPlayerManager(Singleton, AbstractPlayersManager):
|
||||
voiceID: int = context.user.voice.channel.id
|
||||
else:
|
||||
voiceID: int = context.author.voice.channel.id
|
||||
voiceChannel = self.__bot.get_channel(voiceID)
|
||||
voiceChannel = context.author.voice.channel
|
||||
|
||||
playlist = self.__playersThreads[guildID].getPlaylist()
|
||||
lock = RLock()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user