aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-01-17 00:55:06 +0000
committerGravatar GitHub <[email protected]>2021-01-17 00:55:06 +0000
commit9e407f10c3766475d10a94120a5905c430a44bac (patch)
tree3d28b717de005228e29e8e5bcd061e92889b9c30
parentMerge pull request #760 from python-discord/feat/F4zi/CommandSuggestion (diff)
Update to use Member.pending instead of bot.http.get_member
-rw-r--r--bot/exts/moderation/verification.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/moderation/verification.py b/bot/exts/moderation/verification.py
index 2a24c8ec6..bfe9b74b4 100644
--- a/bot/exts/moderation/verification.py
+++ b/bot/exts/moderation/verification.py
@@ -81,13 +81,11 @@ class Verification(Cog):
if member.guild.id != constants.Guild.id:
return # Only listen for PyDis events
- raw_member = await self.bot.http.get_member(member.guild.id, member.id)
-
# If the user has the pending flag set, they will be using the alternate
# gate and will not need a welcome DM with verification instructions.
# We will send them an alternate DM once they verify with the welcome
# video when they pass the gate.
- if raw_member.get("pending"):
+ if member.pending:
return
log.trace(f"Sending on join message to new member: {member.id}")