diff options
| author | 2020-10-06 00:39:54 +0100 | |
|---|---|---|
| committer | 2020-10-06 00:39:54 +0100 | |
| commit | 406da780c06a6797b860d816c4a418def9a3f116 (patch) | |
| tree | 61e97e07f9379788d6109817b3a06ccca33ad49b | |
| parent | Merge get and pop into one conditional (diff) | |
Use clearer variable names in list comprehensions
| -rw-r--r-- | bot/exts/moderation/verification.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/verification.py b/bot/exts/moderation/verification.py index d5eb61f13..8ad42a035 100644 --- a/bot/exts/moderation/verification.py +++ b/bot/exts/moderation/verification.py @@ -555,8 +555,8 @@ class Verification(Cog): @Cog.listener() async def on_member_update(self, before: discord.Member, after: discord.Member) -> None: """Check if we need to send a verification DM to a gated user.""" - before_roles = [r.id for r in before.roles] - after_roles = [r.id for r in after.roles] + before_roles = [role.id for role in before.roles] + after_roles = [role.id for role in after.roles] if constants.Roles.verified not in before_roles and constants.Roles.verified in after_roles: if await self.member_gating_cache.pop(after.id): |