aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-06 00:43:50 +0100
committerGravatar Joe Banks <[email protected]>2020-10-06 00:43:50 +0100
commit8d6d3ef56d29c2eff372c858fa0a228eeefdbfb8 (patch)
treed742408f725cbd6a5ab64e5fe0e3cff912a34164
parentReword cache creation comment (diff)
Clear up comment around DM send
-rw-r--r--bot/exts/moderation/verification.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/exts/moderation/verification.py b/bot/exts/moderation/verification.py
index c675b8db9..89e1cdd7e 100644
--- a/bot/exts/moderation/verification.py
+++ b/bot/exts/moderation/verification.py
@@ -561,6 +561,10 @@ class Verification(Cog):
if constants.Roles.verified not in before_roles and constants.Roles.verified in after_roles:
if await self.member_gating_cache.pop(after.id):
try:
+ # If the member has not received a DM from our !accept command
+ # and has gone through the alternate gating system we should send
+ # our alternate welcome DM which includes info such as our welcome
+ # video.
await safe_dm(after.send(ALTERNATE_VERIFIED_MESSAGE))
except discord.HTTPException:
log.exception("DM dispatch failed on unexpected error code")