mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
strongarm
This commit is contained in:
parent
2171d27b9a
commit
61a475df6c
1 changed files with 5 additions and 3 deletions
|
@ -235,8 +235,10 @@ class Events(commands.Cog):
|
||||||
if message.author.voice is not None and message.author.voice.channel is not None:
|
if message.author.voice is not None and message.author.voice.channel is not None:
|
||||||
voice: discord.VoiceClient = None
|
voice: discord.VoiceClient = None
|
||||||
if message.guild.me.voice is not None:
|
if message.guild.me.voice is not None:
|
||||||
voice = message.guild.voice_client
|
try:
|
||||||
if voice is None:
|
await _dc(message.guild.voice_client)
|
||||||
|
except discord.HTTPException:
|
||||||
|
pass
|
||||||
voice = await message.author.voice.channel.connect()
|
voice = await message.author.voice.channel.connect()
|
||||||
|
|
||||||
if voice.channel != message.author.voice.channel:
|
if voice.channel != message.author.voice.channel:
|
||||||
|
|
Loading…
Reference in a new issue