diff --git a/discord/commands/core.py b/discord/commands/core.py index fcaf3bc13d..e48db22904 100644 --- a/discord/commands/core.py +++ b/discord/commands/core.py @@ -317,10 +317,6 @@ async def can_run(self, ctx: ApplicationContext) -> bool: raise CheckFailure(f"The global check functions for command {self.name} failed.") predicates = self.checks - if self.parent is not None: - # parent checks should be ran first - predicates = self.parent.checks + predicates - if not predicates: # since we have no checks, then we just return True. return True @@ -902,7 +898,7 @@ def __init__( self.subcommands: List[Union[SlashCommand, SlashCommandGroup]] = self.__initial_commands__ self.guild_ids = guild_ids self.parent = parent - self.checks = kwargs.get("checks", []) + self.checks = [] self._before_invoke = None self._after_invoke = None