From 4b31ace26cd9a7d299b47d4f2948864d82eb374c Mon Sep 17 00:00:00 2001 From: Tomi Chen Date: Fri, 8 Jul 2022 19:34:06 -0700 Subject: [PATCH] silence banned error --- sciolyid/functions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sciolyid/functions.py b/sciolyid/functions.py index b3b4219..b13cf50 100644 --- a/sciolyid/functions.py +++ b/sciolyid/functions.py @@ -335,8 +335,9 @@ async def handle_error(ctx, error): # channel is ignored return if error.code == 842: - await ctx.send("**Sorry, you cannot use this command.**") - elif error.code == 666: + # user is banned + return + if error.code == 666: logger.info("GenericError 666") elif error.code == 201: logger.info("HTTP Error")