Merge pull request #72

* Fix command checks actually working
This commit is contained in:
Gnome! 2021-09-21 22:34:54 +01:00 committed by GitHub
parent b810848273
commit 02c6b07834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: