From 9a1b91dc9f6d303f8f07be1abddf6f31356cacc1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 6 Jan 2024 18:53:23 -0500 Subject: [PATCH] Properly restrict auto_moderation audit log action range --- discord/enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/enums.py b/discord/enums.py index 0cc2d8fd8..ed498b8be 100644 --- a/discord/enums.py +++ b/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'