From e1c745fe3c08403f6016eb4151083cd22bc20718 Mon Sep 17 00:00:00 2001 From: Stonedestroyer <1307729+Stonedestroyer@users.noreply.github.com> Date: Wed, 14 Oct 2020 22:34:45 +0200 Subject: [PATCH] Remove ruledropper (#4449) --- redbot/core/bot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/redbot/core/bot.py b/redbot/core/bot.py index b79bc4883..cb9267dd0 100644 --- a/redbot/core/bot.py +++ b/redbot/core/bot.py @@ -1148,7 +1148,7 @@ class RedBase( def remove_cog(self, cogname: str): cog = self.get_cog(cogname) - if cog is None or isinstance(cog, commands.commands._RuleDropper): + if cog is None: return for cls in inspect.getmro(cog.__class__): @@ -1305,9 +1305,6 @@ class RedBase( subcommand.requires.ready_event.set() def remove_command(self, name: str) -> None: - command = self.get_command(name) - if isinstance(command, commands.commands._RuleDropper): - return command = super().remove_command(name) if not command: return