check if voice enabled #41

This commit is contained in:
Milka64 2020-12-13 16:20:48 +01:00
parent 0bbe882e77
commit 502911be81

View file

@ -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]")