diff options
| author | 2019-05-13 14:05:15 +0200 | |
|---|---|---|
| committer | 2019-05-13 14:05:15 +0200 | |
| commit | a1f5221ab3bbebe324354833c6124a63c21a23a7 (patch) | |
| tree | 849387f70f247c79af75f139e4455c5af9acb14c /bot/cogs/wolfram.py | |
| parent | Removing special handling (allowance) for self-deprecating uses of the word '... (diff) | |
Fixes top_role related problems, so Event Handlers can once again use all the features they should have access to.
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/wolfram.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/bot/cogs/wolfram.py b/bot/cogs/wolfram.py index f16c28dde..e8b16b243 100644 --- a/bot/cogs/wolfram.py +++ b/bot/cogs/wolfram.py @@ -74,7 +74,7 @@ def custom_cooldown(*ignore: List[int]) -> check:      async def predicate(ctx: Context) -> bool:          user_bucket = usercd.get_bucket(ctx.message) -        if ctx.author.top_role.id not in ignore: +        if all(role.id not in ignore for role in ctx.author.roles):              user_rate = user_bucket.update_rate_limit()              if user_rate: | 
