Fix attr error

This commit is contained in:
nexy7574 2023-03-22 16:30:24 +00:00
parent 809638b1dc
commit db51802086

View file

@ -169,7 +169,7 @@ class Events(commands.Cog):
*_
):
me_voice = member.guild.me.voice
if me_voice is None or me_voice.channel is None:
if me_voice is None or me_voice.channel is None or member.guild.voice_client is None:
return
channel = me_voice.channel