Skip to content

Commit

Permalink
Update on_command_error.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahCxrest authored Jan 5, 2024
1 parent 336db14 commit 941f33a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion events/on_command_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def on_command_error(self, ctx, error):
error_id = error_gen()


if 'Invalid Webhook Token' or 'Unknown Message' in str(error):
if 'Invalid Webhook Token' in str(error) or 'Unknown Message' in str(error)::
return

if isinstance(error, httpcore.ConnectTimeout):
Expand All @@ -32,6 +32,7 @@ async def on_command_error(self, ctx, error):
color=BLANK_COLOR
))


if isinstance(error, commands.BadArgument):
return await ctx.reply(
embed=discord.Embed(
Expand Down

0 comments on commit 941f33a

Please sign in to comment.