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 17, 2024
1 parent 93da78b commit 99bd238
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions events/on_command_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ async def on_command_error(self, ctx, error):
color=BLANK_COLOR
)
)
if isinstance(error, OverflowError):
return await ctx.reply(embed=discord.Embed(
title="Overflow Error",
description="A user has inputted an arbitrary time amount of time into ERM and we were unable to display the requested data because of this. Please find the source of this, and remove the excess amount of time.",
color=BLANK_COLOR
))
if isinstance(error, commands.MissingRequiredArgument):
return await ctx.send(embed=discord.Embed(
title="Missing Argument",
Expand Down

0 comments on commit 99bd238

Please sign in to comment.