diff --git a/tanjun/checks.py b/tanjun/checks.py index b99b67874..81b5dc085 100644 --- a/tanjun/checks.py +++ b/tanjun/checks.py @@ -318,10 +318,7 @@ async def __call__(self, ctx: tanjun_abc.Context, /) -> bool: member_roles = ctx.member.get_roles() - for member_role in member_roles: - if self.check_roles(member_role): - return self._handle_result(True) - return self._handle_result(False) + return self._handle_result(any(map(self.check_roles, member_roles))) def check_roles(self, member_role: hikari.Role) -> bool: for check in self.required_roles: