-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Description
When creating an AutoMod rule using the Discord API, the REST endpoint intermittently rejects valid trigger_type values. I am sending the same request each time, yet the official API replies with a validation error stating that trigger_type must be 1, even though 4 is a documented and valid trigger type ("Keyword preset").
The exact same request succeeds on the canary API hostname, but fails randomly or consistently on the normal API. This inconsistency suggests a backend regression or a partially-rolled-out change.
Steps to Reproduce
Create automod rule with such data:
{"name":"Hades-Profanity-EN","event_type":1,"trigger_type":4,"trigger_metadata":{"keyword_filter":null,"regex_patterns":null,"presets":[1,2,3],"allow_list":null,"mention_total_limit":null,"mention_raid_protection_enabled":false},"actions":[{"type":1,"metadata":{"channel_id":null,"duration_seconds":null,"custom_message":"Twoja wiadomo\u015B\u0107 zawiera niedozwolone s\u0142ownictwo."}}],"enabled":true}
Expected Behavior
Automod rule creates successfully.
Current Behavior
Getting Invalid Form Body Error message.
Screenshots/Videos
No response
Client and System Information
Using Netcord library for discord bot which is a .net c# library.