mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Fix AutoModRule.edit handling of AutoModRuleEventType enum
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user