Match against resolved name instead of non-existent __name__

This commit is contained in:
Zeva Rose 2022-05-01 09:07:10 -06:00
parent 7110fb1db5
commit 611051e6a1

View file

@ -108,7 +108,8 @@ class BotutilCog(Scale):
else: else:
for command in commands: for command in commands:
old_command = find( 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) old_args = get_type_hints(old_command)
new_args = get_type_hints(command) new_args = get_type_hints(command)