mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[events] send help on BadUnionArgument exception (#2707)
* [events] send help on BadUnionArgument exception * Update redbot/core/events.py Co-Authored-By: Michael H <michael@michaelhall.tech>
This commit is contained in:
parent
644aaf0c0e
commit
1ffb79f852
@ -191,7 +191,7 @@ def init_events(bot, cli_flags):
|
||||
await ctx.send(error.args[0])
|
||||
else:
|
||||
await ctx.send_help()
|
||||
elif isinstance(error, commands.BadArgument):
|
||||
elif isinstance(error, commands.UserInputError):
|
||||
await ctx.send_help()
|
||||
elif isinstance(error, commands.DisabledCommand):
|
||||
disabled_message = await bot.db.disabled_command_msg()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user