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/reminders.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/reminders.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py index 2a9a9d6dc..3f8378426 100644 --- a/bot/cogs/reminders.py +++ b/bot/cogs/reminders.py @@ -14,6 +14,7 @@ from bot.constants import ( POSITIVE_REPLIES, STAFF_ROLES, URLs ) from bot.pagination import LinePaginator +from bot.utils.checks import with_role_check from bot.utils.scheduling import Scheduler from bot.utils.time import humanize_delta, parse_rfc1123, wait_until @@ -188,7 +189,7 @@ class Reminders(Scheduler): embed = Embed() # Make sure the reminder should actually be made. - if ctx.author.top_role.id not in STAFF_ROLES: + if with_role_check(ctx, *STAFF_ROLES): # If they don't have permission to set a reminder in this channel if ctx.channel.id not in WHITELISTED_CHANNELS: |