Properly restrict auto_moderation audit log action range

This commit is contained in:
Rapptz 2024-01-06 18:53:23 -05:00
parent de6a6af5d3
commit 9a1b91dc9f

View File

@ -481,7 +481,7 @@ class AuditLogAction(Enum):
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'