[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:
Fixator10 2019-05-19 14:14:12 +04:00 committed by Michael H
parent 644aaf0c0e
commit 1ffb79f852

View File

@ -191,7 +191,7 @@ def init_events(bot, cli_flags):
await ctx.send(error.args[0]) await ctx.send(error.args[0])
else: else:
await ctx.send_help() await ctx.send_help()
elif isinstance(error, commands.BadArgument): elif isinstance(error, commands.UserInputError):
await ctx.send_help() await ctx.send_help()
elif isinstance(error, commands.DisabledCommand): elif isinstance(error, commands.DisabledCommand):
disabled_message = await bot.db.disabled_command_msg() disabled_message = await bot.db.disabled_command_msg()