From 611051e6a117927b2ad285386343ff8237a429a6 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sun, 1 May 2022 09:07:10 -0600 Subject: [PATCH] Match against resolved name instead of non-existent __name__ --- jarvis/cogs/botutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jarvis/cogs/botutil.py b/jarvis/cogs/botutil.py index fa955cf..61b0839 100644 --- a/jarvis/cogs/botutil.py +++ b/jarvis/cogs/botutil.py @@ -108,7 +108,8 @@ class BotutilCog(Scale): else: for command in commands: old_command = find( - lambda x: x.__name__ == command.__name__, current_commands[module] + lambda x: x.resolved_name == command.resolved_name, + current_commands[module], ) old_args = get_type_hints(old_command) new_args = get_type_hints(command)