From 941f33a317932c8973ed0eab1d19e158bd683596 Mon Sep 17 00:00:00 2001 From: Noah <117038300+NoahCxrest@users.noreply.github.com> Date: Thu, 4 Jan 2024 17:31:12 -0700 Subject: [PATCH] Update on_command_error.py --- events/on_command_error.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/events/on_command_error.py b/events/on_command_error.py index 9e41212e..e4d3ab29 100644 --- a/events/on_command_error.py +++ b/events/on_command_error.py @@ -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): @@ -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(