Properly fix error

This commit is contained in:
Zeva Rose 2022-04-30 23:31:58 -06:00
parent 36cd2a6f0f
commit 16d7ef940e

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.values lambda x: x.__name__ == command.__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)