mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user