diff --git a/main.py b/main.py index cafc8dfe..2498d2b2 100644 --- a/main.py +++ b/main.py @@ -163,8 +163,11 @@ async def _ping(ctx): @is_owner() async def leave(ctx): """Leaves the guild""" - await ctx.send("**Leaving the guild... Bye Bye uvu**") - await leave() + try: + await ctx.send("**Leaving the guild... Bye Bye uvu**") + await ctx.guild.leave() + except Exception as ex: + print(ex) @client.command(name='help')