mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Commands] Fix built in check decorator order affecting permissions (#2621)
OOOoooooOOOoOOOooOoOOOOoooo
This commit is contained in:
parent
1d93fe4cf9
commit
59115cd1c7
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user