This commit is contained in:
Zeva Rose 2022-05-04 23:47:07 -06:00
parent 7bf5cc8cb3
commit 9695074b3e

View file

@ -337,7 +337,7 @@ class Jarvis(Client):
for role in before.roles: for role in before.roles:
if role not in after.roles: if role not in after.roles:
reason = "N/A" reason = "N/A"
if entry := find(lambda x: x.new_value == role.id, auditlog.entires): if entry := find(lambda x: x.new_value == role.id, auditlog.entries):
reason = entry.reason reason = entry.reason
removed_roles[role] = reason removed_roles[role] = reason
for role in after.roles: for role in after.roles: