Skip to content

Commit

Permalink
AutoMod message intent updates (#5083)
Browse files Browse the repository at this point in the history
* Add message content intent requirements

* Update docs/topics/Gateway.md

* Update docs/Change_Log.md

* Update docs/topics/Gateway.md

* Update docs/Change_Log.md

* Update docs/topics/Gateway.md

* Update docs/topics/Gateway.md

* Update Change_Log.md

* add matched_content (#5102)

add `matched_content` field

* Update Change_Log.md

Co-authored-by: Hemu <[email protected]>
  • Loading branch information
shaydewael and hemu authored Jun 21, 2022
1 parent 2b6aa7e commit 36b9f2e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 8 additions & 0 deletions docs/Change_Log.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## Auto Moderation

#### Jun 17, 2022

#### Breaking Changes

In API v10, the `MESSAGE_CONTENT` (`1 << 15`) intent is now required to receive non-empty values for the `content` and `matched_content` fields in [`AUTO_MODERATION_ACTION_EXECUTION`](#DOCS_TOPICS_GATEWAY/auto-moderation-action-execution) gateway events. This matches the intended behavior for message content across the API.

## Updated Connection Property Field Names

#### Jun 17, 2022
Expand Down
8 changes: 5 additions & 3 deletions docs/topics/Gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -868,13 +868,15 @@ Sent when an rule is triggered and an action is executed (e.g. message is blocke
| channel_id? | snowflake | the id of the channel in which user content was posted |
| message_id? | snowflake | the id of any user message which content belongs to * |
| alert_system_message_id? | snowflake | the id of any system auto moderation messages posted as a result of this action ** |
| content | string | the user generated text content |
| content *** | string | the user generated text content |
| matched_keyword | ?string | the word or phrase configured in the rule that triggered the rule |
| matched_content | ?string | the substring in content that triggered the rule |
| matched_content *** | ?string | the substring in content that triggered the rule |


\* `message_id` will not exist if message was blocked by automod or content was not part of any message
\** `alert_system_message_id` will not exist if this event does not correspond to an action with type `SEND_ALERT_MESSAGE`
\*\* `alert_system_message_id` will not exist if this event does not correspond to an action with type `SEND_ALERT_MESSAGE`
\*\*\* `MESSAGE_CONTENT` (`1 << 15`) [gateway intent](#DOCS_TOPICS_GATEWAY/gateway-intents) is required to receive non-empty values for the `content` and `matched_content` fields


### Channels

Expand Down

0 comments on commit 36b9f2e

Please sign in to comment.