discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Automod Execution events missing a required key in payloads

Open onerandomusername opened this issue 1 year ago • 2 comments

Description

matched_content and content are documented as optional, but as of a recent change (like 3-4 days), are no longer provided when the message content intent is disabled. This goes against the documentation, and is a breaking change.

Steps to Reproduce

Can't provide curl requests due to this being over the gateway.

  1. Provide the automod execution intents to the gateway when connecting, while making sure the message_content intent is not provided.
  2. Have the manage_guild permission to ensure that execution events are received
  3. Use an account to send a message that will be filter.
  4. Receive the execution event

Expected Behavior

The matched_content and content keys are provided.

Current Behavior

The matched_content and content keys are not provided.

Screenshots/Videos

No response

Client and System Information

disnake 2.6.0a

onerandomusername avatar Jul 25 '22 00:07 onerandomusername

Suggested fix: AutoMod policy executions should happen on a stealth drop, i.e., shadow ban, basis.

erkinalp avatar Jul 25 '22 16:07 erkinalp

Suggested fix: AutoMod policy executions should happen on a stealth drop, i.e., shadow ban, basis.

There has already been a documentation fix?

ooliver1 avatar Jul 25 '22 17:07 ooliver1

This was silently fixed in the past few days, so I suppose it no longer is a bug, but I'm disappointed that it was not acknowledged.

onerandomusername avatar Aug 13 '22 05:08 onerandomusername