mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Properly restrict auto_moderation audit log action range
This commit is contained in:
parent
de6a6af5d3
commit
9a1b91dc9f
@ -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…
x
Reference in New Issue
Block a user