try to fix restart cmd again

This commit is contained in:
Milka64 2020-12-13 18:33:37 +01:00
parent 68525eeafd
commit 84b09f4217

View file

@ -99,7 +99,7 @@ class Mybot(commands.Cog):
@commands.command()
async def leave(self, ctx):
if ctx.voice_client.is_connected():
if ctx.voice_client and ctx.voice_client.is_connected():
await ctx.guild.voice_client.disconnect()
@commands.command(help="Interrogation issues \n Args: list, search[mot clé] et add[nom de l'issue]")