From 59115cd1c7795abf5c0fbab89d2473ce4b6b8ece Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 25 Apr 2019 11:51:02 -0400 Subject: [PATCH] [Commands] Fix built in check decorator order affecting permissions (#2621) OOOoooooOOOoOOOooOoOOOOoooo --- redbot/core/commands/commands.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/redbot/core/commands/commands.py b/redbot/core/commands/commands.py index b5d54c439..796a7942a 100644 --- a/redbot/core/commands/commands.py +++ b/redbot/core/commands/commands.py @@ -156,6 +156,13 @@ class Command(CogCommandMixin, commands.Command): self._help_override = kwargs.pop("help_override", None) self.translator = kwargs.pop("i18n", None) + def _ensure_assignment_on_copy(self, other): + super()._ensure_assignment_on_copy(other) + + # Red specific + other.requires = self.requires + return other + @property def help(self): """Help string for this command.