Fix command checks actually working

This commit is contained in:
Gnome 2021-09-21 20:49:09 +01:00
parent b810848273
commit a295b4ab38

View File

@ -399,9 +399,9 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
command_attrs = {}
try:
checks = command_attrs.pop("checks")
checks = func.__commands_checks__
checks.reverse()
except KeyError:
except AttributeError:
checks = kwargs.get("checks", [])
try: