aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-10-15 09:25:31 +0200
committerGravatar GitHub <[email protected]>2021-10-15 09:25:31 +0200
commit510f733fe6da44989c609ba029635047f46ee4c6 (patch)
tree38c9245b759130d88bf9a8de7dab229420605aa5
parentMerge pull request #1831 from python-discord/custom-logger-class (diff)
parentUpdate `isinstance` check (diff)
Merge pull request #1874 from python-discord/fix-bot-1869
Fix community/staff members not being able to mention users in `!remind`
-rw-r--r--bot/exts/utils/reminders.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py
index be5181297..b4f88af05 100644
--- a/bot/exts/utils/reminders.py
+++ b/bot/exts/utils/reminders.py
@@ -118,7 +118,7 @@ class Reminders(Cog):
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, ""