From 84226a9d02bc04e5e401e6400ea9fe6d76348167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20N=C3=B8rgaard?= Date: Sun, 21 Apr 2024 19:56:20 +0100 Subject: [PATCH] Fix AutoModRule.edit handling of AutoModRuleEventType enum --- discord/automod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/automod.py b/discord/automod.py index 8e4adc0d6..e4a7b751c 100644 --- a/discord/automod.py +++ b/discord/automod.py @@ -518,7 +518,7 @@ class AutoModRule: payload['name'] = name if event_type is not MISSING: - payload['event_type'] = event_type + payload['event_type'] = event_type.value if trigger is not MISSING: trigger_metadata = trigger.to_metadata_dict()