Browse Source

Fix overwriting of AuditLogDiff.roles for multiple $add/$remove keys

pull/1811/head
Rapptz 6 years ago
parent
commit
7f4c57dd5a
  1. 3
      discord/audit_logs.py

3
discord/audit_logs.py

@ -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…
Cancel
Save