[commands] Revert on_error when cog is ejected for HelpCommand

This commit is contained in:
Rapptz 2023-06-28 08:20:34 -04:00
parent 0c2698cf28
commit ee99036659

View File

@ -294,6 +294,9 @@ class _HelpCommandImpl(Command):
cog.walk_commands = cog.walk_commands.__wrapped__
self.cog = None
# Revert `on_error` to use the original one in case of race conditions
self.on_error = self._injected.on_help_command_error
class HelpCommand:
r"""The base implementation for help command formatting.