diff options
| author | Rapptz <[email protected]> | 2021-07-04 19:13:21 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-07-04 19:13:21 -0400 |
| commit | 49f8073262592dcc9f12cceeb4f9236e9ec62d4b (patch) | |
| tree | b7080fa9e28abccebd6bfda4cd4f1caa97728ec4 | |
| parent | Fix typing errors with Client (diff) | |
| download | discord.py-49f8073262592dcc9f12cceeb4f9236e9ec62d4b.tar.xz discord.py-49f8073262592dcc9f12cceeb4f9236e9ec62d4b.zip | |
Fix Permission serialisation in audit logs
Fix #7171
| -rw-r--r-- | discord/audit_logs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/audit_logs.py b/discord/audit_logs.py index f1bba6ef..a31d3634 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'] |