Fix error in old command finding

This commit is contained in:
Zeva Rose 2022-04-30 23:30:47 -06:00
parent 9499dc0845
commit 36cd2a6f0f

View file

@ -102,7 +102,7 @@ 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 lambda x: x.__name__ == command.__name__, current_commands.values
) )
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)