aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar TizzySaurus <[email protected]>2021-10-14 22:41:57 +0100
committerGravatar GitHub <[email protected]>2021-10-14 22:41:57 +0100
commit28bd771cfcc3640bfe65f54ba7679e05a1117c73 (patch)
tree38c9245b759130d88bf9a8de7dab229420605aa5
parentMerge pull request #1831 from python-discord/custom-logger-class (diff)
Update `isinstance` check
-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, ""