Skip to content

Commit

Permalink
Fix audit log overwrite transformer (#1716)
Browse files Browse the repository at this point in the history
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Co-authored-by: Lala Sabathil <lala@pycord.dev>
Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com>
  • Loading branch information
4 people committed Oct 22, 2022
1 parent 1aafeb8 commit 982c476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/audit_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 982c476

Please sign in to comment.