diff options
| author | 2021-08-24 16:30:16 +0100 | |
|---|---|---|
| committer | 2021-08-24 16:42:33 +0100 | |
| commit | b1aafff149eb2fd2262f4b06a950ebad460f7281 (patch) | |
| tree | 28f9d2035086190c06b9feb59e53da5030038728 | |
| parent | Ignore partners & members of the python community as well as staff from `!lis... (diff) | |
Allow partners & members of the python community to have mentions in `!remind`
| -rw-r--r-- | bot/exts/utils/reminders.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py index a97080a4c..847883fc7 100644 --- a/bot/exts/utils/reminders.py +++ b/bot/exts/utils/reminders.py @@ -13,7 +13,7 @@ from discord.ext.commands import Cog, Context, Greedy, group from bot.bot import Bot from bot.constants import ( Guild, Icons, MODERATION_ROLES, POSITIVE_REPLIES, - Roles, STAFF_PARTNERS_COMMUNITY_ROLES, STAFF_ROLES + Roles, STAFF_PARTNERS_COMMUNITY_ROLES ) from bot.converters import Duration from bot.pagination import LinePaginator @@ -113,7 +113,7 @@ class Reminders(Cog): If mentions aren't allowed, also return the type of mention(s) disallowed. """ - if await has_no_roles_check(ctx, *STAFF_ROLES): + if await has_no_roles_check(ctx, *STAFF_PARTNERS_COMMUNITY_ROLES): return False, "members/roles" elif await has_no_roles_check(ctx, *MODERATION_ROLES): return all(isinstance(mention, discord.Member) for mention in mentions), "roles" |