[Commands] Fix built in check decorator order affecting permissions (#2621)

OOOoooooOOOoOOOooOoOOOOoooo
This commit is contained in:
Will 2019-04-25 11:51:02 -04:00 committed by Michael H
parent 1d93fe4cf9
commit 59115cd1c7

View File

@ -156,6 +156,13 @@ class Command(CogCommandMixin, commands.Command):
self._help_override = kwargs.pop("help_override", None) self._help_override = kwargs.pop("help_override", None)
self.translator = kwargs.pop("i18n", 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 @property
def help(self): def help(self):
"""Help string for this command. """Help string for this command.