Browse Source

Fix AutoModRule.edit handling of AutoModRuleEventType enum

pull/9775/head
Alex Nørgaard 12 months ago
committed by GitHub
parent
commit
8fd1fd805a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      discord/automod.py

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

Loading…
Cancel
Save