Skip to content

Commit 518e295

Browse files
authored
Fix ignored 'CommandChecks' NameError (#624)
Signed-off-by: Wintereye <67538343+wintereye159@users.noreply.github.com>
1 parent 9716f97 commit 518e295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/command_checks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ async def _check(ctx: "TeXBotApplicationContext") -> bool:
6868
@classmethod
6969
def is_interaction_user_in_main_guild_failure(cls, check: "CheckFailure") -> bool:
7070
"""Whether the check failed due to the user not being in your Discord guild."""
71-
return bool(check.__name__ == cls._check_interaction_user_in_main_guild.__name__) # type: ignore[attr-defined]
71+
return bool(check.__name__ == cls.check_interaction_user_in_main_guild.__name__) # type: ignore[attr-defined]
7272

7373
@classmethod
7474
def is_interaction_user_has_committee_role_failure(cls, check: "CheckFailure") -> bool:
7575
"""Whether the check failed due to the user not having the committee role."""
76-
return bool(check.__name__ == cls._check_interaction_user_has_committee_role.__name__) # type: ignore[attr-defined]
76+
return bool(check.__name__ == cls.check_interaction_user_has_committee_role.__name__) # type: ignore[attr-defined]

0 commit comments

Comments
 (0)