Fix missing guild field
This commit is contained in:
parent
3c7b9e0f81
commit
1c36fdf3b8
1 changed files with 4 additions and 2 deletions
|
@ -298,7 +298,8 @@ class Jarvis(Client):
|
|||
|
||||
async def process_verify(self, before: Member, after: Member) -> Embed:
|
||||
"""Process user verification."""
|
||||
auditlog = await after.guild.fetch_audit_log(user_id=before.id, action_type=AuditLogEventType.MEMBER_ROLE_UPDATE)
|
||||
guild = await self.fetch_guild(after._guild_id)
|
||||
auditlog = await guild.fetch_audit_log(user_id=before.id, action_type=AuditLogEventType.MEMBER_ROLE_UPDATE)
|
||||
audit_event = get(auditlog.events, reason="Verification passed")
|
||||
if audit_event:
|
||||
admin_mention = "[N/A]"
|
||||
|
@ -320,7 +321,8 @@ class Jarvis(Client):
|
|||
if before.roles == after.roles:
|
||||
return
|
||||
|
||||
auditlog = await after.guild.fetch_audit_log(user_id=before.id, action_type=AuditLogEventType.MEMBER_ROLE_UPDATE)
|
||||
guild = await self.fetch_guild(after._guild_id)
|
||||
auditlog = await guild.fetch_audit_log(user_id=before.id, action_type=AuditLogEventType.MEMBER_ROLE_UPDATE)
|
||||
new_roles = {}
|
||||
removed_roles = {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue