Browse Source

Fix Permission serialisation in audit logs

Fix #7171
pull/7172/head
Rapptz 4 years ago
parent
commit
49f8073262
  1. 4
      discord/audit_logs.py

4
discord/audit_logs.py

@ -92,8 +92,8 @@ def _transform_overwrites(
) -> List[Tuple[Object, PermissionOverwrite]]:
overwrites = []
for elem in data:
allow = Permissions(elem['allow'])
deny = Permissions(elem['deny'])
allow = Permissions(int(elem['allow']))
deny = Permissions(int(elem['deny']))
ow = PermissionOverwrite.from_pair(allow, deny)
ow_type = elem['type']

Loading…
Cancel
Save