try to fix restart cmd again
This commit is contained in:
parent
68525eeafd
commit
84b09f4217
1 changed files with 1 additions and 1 deletions
|
@ -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]")
|
||||
|
|
Loading…
Reference in a new issue