check if voice enabled #41
This commit is contained in:
parent
0bbe882e77
commit
502911be81
1 changed files with 2 additions and 1 deletions
|
@ -92,6 +92,7 @@ class Mybot(commands.Cog):
|
|||
|
||||
@commands.command()
|
||||
async def disconnect(self, ctx):
|
||||
if 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