mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Fix AutoModRule.edit handling of AutoModRuleEventType enum
This commit is contained in:
parent
d853a3f0a7
commit
8fd1fd805a
@ -518,7 +518,7 @@ class AutoModRule:
|
|||||||
payload['name'] = name
|
payload['name'] = name
|
||||||
|
|
||||||
if event_type is not MISSING:
|
if event_type is not MISSING:
|
||||||
payload['event_type'] = event_type
|
payload['event_type'] = event_type.value
|
||||||
|
|
||||||
if trigger is not MISSING:
|
if trigger is not MISSING:
|
||||||
trigger_metadata = trigger.to_metadata_dict()
|
trigger_metadata = trigger.to_metadata_dict()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user