From 49f8073262592dcc9f12cceeb4f9236e9ec62d4b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 4 Jul 2021 19:13:21 -0400 Subject: [PATCH] Fix Permission serialisation in audit logs Fix #7171 --- discord/audit_logs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/audit_logs.py b/discord/audit_logs.py index f1bba6ef4..a31d36345 100644 --- a/discord/audit_logs.py +++ b/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']