Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AutoMod API returning random “Invalid Form Body” for valid trigger_type (works on canary API) #7985

Open
Labels
@ziomek64

Description

@ziomek64

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp