From f1a1a55035b33641ef2cfc3257ecb8762a9e5683 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 23 Jul 2020 15:37:49 +0100 Subject: [PATCH] Making leave guild text bold --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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')