Skip to content

Commit

Permalink
Fix flag errors
Browse files Browse the repository at this point in the history
  • Loading branch information
WitherredAway committed Oct 30, 2024
1 parent 48ffd42 commit acca78e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cogs/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ async def on_command_error(self, ctx, error):
ephemeral=True,
)
elif isinstance(error, commands.BadFlagArgument):
if isinstance(error.original, commands.ConversionError):
return await ctx.send(error.original.original, ephemeral=True)
await ctx.send(error.original, ephemeral=True)
elif isinstance(error, commands.CheckFailure):
await ctx.send(error, ephemeral=True)
Expand Down

0 comments on commit acca78e

Please sign in to comment.