From d5c412e3dfa23b2c45c0ebaf7c637e3dc38ed5ad Mon Sep 17 00:00:00 2001 From: Toby Harradine Date: Sun, 14 Jul 2019 13:05:07 +1000 Subject: [PATCH] [Permissions] Fix Requires.ready_event.set() on subcommands (#2868) Signed-off-by: Toby Harradine --- redbot/core/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/core/bot.py b/redbot/core/bot.py index b54e11f77..ceeb05ff0 100644 --- a/redbot/core/bot.py +++ b/redbot/core/bot.py @@ -457,7 +457,7 @@ class RedBase(commands.GroupMixin, commands.bot.BotBase, RPCMixin): # pylint: d for subcommand in set(command.walk_commands()): self.dispatch("command_add", subcommand) if permissions_not_loaded: - command.requires.ready_event.set() + subcommand.requires.ready_event.set() def remove_command(self, name: str) -> None: command = super().remove_command(name)