Skip to content

Commit 982c476

Browse files
NeloBlivionBobDotComLulalabyplun1331
authored
Fix audit log overwrite transformer (#1716)
Co-authored-by: BobDotCom <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: plun1331 <[email protected]>
1 parent 1aafeb8 commit 982c476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/audit_logs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ def _transform_overwrites(
109109
ow_type = elem["type"]
110110
ow_id = int(elem["id"])
111111
target = None
112-
if ow_type == "0":
112+
if ow_type == 0:
113113
target = entry.guild.get_role(ow_id)
114-
elif ow_type == "1":
114+
elif ow_type == 1:
115115
target = entry._get_member(ow_id)
116116

117117
if target is None:

0 commit comments

Comments
 (0)