check if voice enabled #41
This commit is contained in:
parent
0bbe882e77
commit
502911be81
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ class Mybot(commands.Cog):
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def disconnect(self, ctx):
|
async def disconnect(self, ctx):
|
||||||
await ctx.guild.voice_client.disconnect()
|
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]")
|
@commands.command(help="Interrogation issues \n Args: list, search[mot clé] et add[nom de l'issue]")
|
||||||
async def issue(self, ctx, *args):
|
async def issue(self, ctx, *args):
|
||||||
|
|
Loading…
Reference in a new issue