mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Properly restrict auto_moderation audit log action range
This commit is contained in:
1 parent
de6a6af5d3
commit
9a1b91dc9f
1 file changed
+1
-1
+1
-1
@@ -481,7 +481,7 @@ class AuditLogAction(Enum):
|
|||||||
return 'thread'
|
return 'thread'
|
||||||
elif v < 122:
|
elif v < 122:
|
||||||
return 'integration_or_app_command'
|
return 'integration_or_app_command'
|
||||||
elif v < 143:
|
elif 139 < v < 143:
|
||||||
return 'auto_moderation'
|
return 'auto_moderation'
|
||||||
elif v < 146:
|
elif v < 146:
|
||||||
return 'user'
|
return 'user'
|
||||||
|
|||||||
Reference in new issue
Block a user