diff options
| author | 2020-07-24 10:26:41 +0200 | |
|---|---|---|
| committer | 2020-07-24 10:26:41 +0200 | |
| commit | be52d33e5466f83fbf86d0bec3553f788bc08c27 (patch) | |
| tree | f311745bdbcc4c0e60f87592773e5dccc95a80ec | |
| parent | Put valid_types_list inside the conditional. (diff) | |
No need for all() in cog_check for AllowDenyLists.
| -rw-r--r-- | bot/cogs/allow_deny_lists.py | 5 |
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: |