From 982c47683049e842e310ab43cd52779b2f3ca571 Mon Sep 17 00:00:00 2001 From: NeloBlivion <41271523+NeloBlivion@users.noreply.github.com> Date: Sat, 22 Oct 2022 03:39:21 +0100 Subject: [PATCH] Fix audit log overwrite transformer (#1716) Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com> Co-authored-by: Lala Sabathil Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com> --- 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 892c7e896e..9b83d1802f 100644 --- a/discord/audit_logs.py +++ b/discord/audit_logs.py @@ -109,9 +109,9 @@ def _transform_overwrites( ow_type = elem["type"] ow_id = int(elem["id"]) target = None - if ow_type == "0": + if ow_type == 0: target = entry.guild.get_role(ow_id) - elif ow_type == "1": + elif ow_type == 1: target = entry._get_member(ow_id) if target is None: