aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-05-13 14:31:45 +0200
committerGravatar Leon Sandøy <[email protected]>2019-05-13 14:31:45 +0200
commitfb731240cd3443abd38c038ce8ea1fddf5cc3f09 (patch)
treef3da6cfbd8a567ff9d62e706dab82973e4bd112c
parentFixes top_role related problems, so Event Handlers can once again use all the... (diff)
oops, reverse logic. Reminders should now allow staff members to use them everywhere.
-rw-r--r--bot/cogs/reminders.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py
index 3f8378426..e8177107b 100644
--- a/bot/cogs/reminders.py
+++ b/bot/cogs/reminders.py
@@ -14,7 +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.checks import without_role_check
from bot.utils.scheduling import Scheduler
from bot.utils.time import humanize_delta, parse_rfc1123, wait_until
@@ -188,8 +188,8 @@ class Reminders(Scheduler):
embed = Embed()
- # Make sure the reminder should actually be made.
- if with_role_check(ctx, *STAFF_ROLES):
+ # If the user is not staff, we need to verify whether or not to make a reminder at all.
+ if without_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: