Fix AutoModRule.edit handling of AutoModRuleEventType enum

This commit is contained in:
Alex Nørgaard 2024-04-21 19:56:20 +01:00 committed by GitHub
parent d853a3f0a7
commit 8fd1fd805a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()