Browse Source

Properly restrict auto_moderation audit log action range

pull/9702/head
Rapptz 1 year ago
parent
commit
9a1b91dc9f
  1. 2
      discord/enums.py

2
discord/enums.py

@ -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'

Loading…
Cancel
Save