Skip to content

Commit

Permalink
Properly restrict auto_moderation audit log action range
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Jan 6, 2024
1 parent de6a6af commit 9a1b91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def target_type(self) -> Optional[str]:
return 'thread'
elif v < 122:
return 'integration_or_app_command'
elif v < 143:
elif 139 < v < 143:
return 'auto_moderation'
elif v < 146:
return 'user'
Expand Down

0 comments on commit 9a1b91d

Please sign in to comment.