Trying to fix error

This commit is contained in:
Rafael Vargas
2023-02-21 19:35:09 -03:00
parent 47cb9ec8f5
commit 97996a1647
3 changed files with 13 additions and 3 deletions

View File

@@ -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()