aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/allow_deny_lists.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/cogs/allow_deny_lists.py b/bot/cogs/allow_deny_lists.py
index 71a032ea5..e28e32bd6 100644
--- a/bot/cogs/allow_deny_lists.py
+++ b/bot/cogs/allow_deny_lists.py
@@ -210,10 +210,7 @@ class AllowDenyLists(Cog):
def cog_check(self, ctx: Context) -> bool:
"""Only allow moderators to invoke the commands in this cog."""
- checks = [
- with_role_check(ctx, *constants.MODERATION_ROLES),
- ]
- return all(checks)
+ return with_role_check(ctx, *constants.MODERATION_ROLES)
def setup(bot: Bot) -> None: