Fix overwriting of AuditLogDiff.roles for multiple $add/$remove keys
This commit is contained in:
parent
dec14faea9
commit
7f4c57dd5a
@ -165,7 +165,8 @@ class AuditLogChanges:
|
||||
self.before.color = self.before.colour
|
||||
|
||||
def _handle_role(self, first, second, entry, elem):
|
||||
setattr(first, 'roles', [])
|
||||
if not hasattr(first, 'roles'):
|
||||
setattr(first, 'roles', [])
|
||||
|
||||
data = []
|
||||
g = entry.guild
|
||||
|
Loading…
x
Reference in New Issue
Block a user