Skip to content

Commit

Permalink
Merge pull request #1874 from python-discord/fix-bot-1869
Browse files Browse the repository at this point in the history
Fix community/staff members not being able to mention users in `!remind`
  • Loading branch information
Akarys42 committed Oct 15, 2021
2 parents 1ca6d57 + 28bd771 commit 510f733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/exts/utils/reminders.py
Expand Up @@ -118,7 +118,7 @@ async def _check_mentions(ctx: Context, mentions: t.Iterable[Mentionable]) -> t.
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"
return all(isinstance(mention, (discord.User, discord.Member)) for mention in mentions), "roles"
else:
return True, ""

Expand Down

0 comments on commit 510f733

Please sign in to comment.