aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Manuel Ignacio Pérez Alcolea <[email protected]>2019-12-22 14:14:00 -0300
committerGravatar Manuel Ignacio Pérez Alcolea <[email protected]>2019-12-22 14:14:00 -0300
commit388cf752c0e41695644f532d5c4903bd821f0c29 (patch)
treea3791fb3fcf3573740ce46d454ee278656c62f5e
parentMove type declarations for annotations and converters (diff)
Fix bug to log if `user` is either `Member` or `User`
-rw-r--r--bot/cogs/moderation/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/utils.py b/bot/cogs/moderation/utils.py
index d564d0699..6c28d8db5 100644
--- a/bot/cogs/moderation/utils.py
+++ b/bot/cogs/moderation/utils.py
@@ -38,7 +38,7 @@ async def post_user(ctx: Context, user: MemberObject) -> t.Optional[dict]:
"""
log.trace(f"Attempting to add user {user.id} to the database.")
- if not isinstance(user, discord.User):
+ if not isinstance(user, (discord.Member, discord.User)):
log.warn("The user being added to the DB is not a Member or User object.")
payload = {