From 25a436c42beb065caa7d5de9fd55d648ed0bef39 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Tue, 3 May 2022 09:50:23 -0600 Subject: [PATCH] Fix typos from naff migration --- jarvis/utils/updates.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jarvis/utils/updates.py b/jarvis/utils/updates.py index cf78346..3f556f7 100644 --- a/jarvis/utils/updates.py +++ b/jarvis/utils/updates.py @@ -150,17 +150,17 @@ async def update(bot: "Client") -> Optional[UpdateResult]: for module in current_commands.keys(): if module not in new_commands: logger.debug("Module %s removed after update", module) - bot.shed_Cog(module) + bot.shed_cog(module) unloaded.append(module) logger.debug("Checking for new/modified commands") for module, commands in new_commands.items(): logger.debug("Processing %s", module) if module not in current_commands: - bot.grow_Cog(module) + bot.grow_cog(module) loaded.append(module) elif len(current_commands[module]) != len(commands): - bot.regrow_Cog(module) + bot.regrow_cog(module) reloaded.append(module) else: for command in commands: @@ -182,15 +182,15 @@ async def update(bot: "Client") -> Optional[UpdateResult]: # Check if number arguments have changed if len(old_args) != len(new_args): - bot.regrow_Cog(module) + bot.regrow_cog(module) reloaded.append(module) elif any(x not in old_arg_names for x in new_arg_names) or any( x not in new_arg_names for x in old_arg_names ): - bot.regrow_Cog(module) + bot.regrow_cog(module) reloaded.append(module) elif any(new_args[idx].type != x.type for idx, x in enumerate(old_args)): - bot.regrow_Cog(module) + bot.regrow_cog(module) reloaded.append(module) return UpdateResult(