From 02c6b078340541023bc23c15a76f29bfd2363666 Mon Sep 17 00:00:00 2001 From: Gnome! <45660393+Gnome-py@users.noreply.github.com> Date: Tue, 21 Sep 2021 22:34:54 +0100 Subject: [PATCH] Merge pull request #72 * Fix command checks actually working --- discord/ext/commands/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 5947dc19..5d48eb8f 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -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: