Match against resolved name instead of non-existent __name__
This commit is contained in:
parent
7110fb1db5
commit
611051e6a1
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue