aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-02-25 04:23:54 +0100
committerGravatar Numerlor <[email protected]>2021-02-25 04:23:54 +0100
commit3153ad05222156b4aacb0f288d36ec3a1ab6eda1 (patch)
treedf01c4461453d82c5eea561063ef50c17d0ef945
parentFixes Problems With Help Channel DM (diff)
Send command help for `BadUnionArgument`s
-rw-r--r--bot/exts/backend/error_handler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/backend/error_handler.py b/bot/exts/backend/error_handler.py
index d2cce5558..92414e5d2 100644
--- a/bot/exts/backend/error_handler.py
+++ b/bot/exts/backend/error_handler.py
@@ -239,6 +239,7 @@ class ErrorHandler(Cog):
elif isinstance(e, errors.BadUnionArgument):
embed = self._get_error_embed("Bad argument", f"{e}\n{e.errors[-1]}")
await ctx.send(embed=embed)
+ await prepared_help_command
self.bot.stats.incr("errors.bad_union_argument")
elif isinstance(e, errors.ArgumentParsingError):
embed = self._get_error_embed("Argument parsing error", str(e))