strongarm

This commit is contained in:
nexy7574 2023-03-22 15:41:34 +00:00
parent 2171d27b9a
commit 61a475df6c

View file

@ -235,8 +235,10 @@ class Events(commands.Cog):
if message.author.voice is not None and message.author.voice.channel is not None:
voice: discord.VoiceClient = None
if message.guild.me.voice is not None:
voice = message.guild.voice_client
if voice is None:
try:
await _dc(message.guild.voice_client)
except discord.HTTPException:
pass
voice = await message.author.voice.channel.connect()
if voice.channel != message.author.voice.channel: