Skip to content

Commit

Permalink
silence banned error
Browse files Browse the repository at this point in the history
  • Loading branch information
tctree333 committed Jul 9, 2022
1 parent 23ad748 commit 4b31ace
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sciolyid/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4b31ace

Please sign in to comment.