Removing Message Content in AutoMod Gateway Events #5104
shaydewael
announced in
Announcement
Replies: 3 comments 3 replies
-
swag :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
meow |
Beta Was this translation helpful? Give feedback.
0 replies
-
Alternative: Make MESSAGE_CONTENT a precondition for automod policy execution intents. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The entry for this change is in the documentation: https://discord.com/developers/docs/change-log#message-content-in-automod-events
AUTO_MODERATION_ACTION_EXECUTION
As you probably know, in API v10+, the
MESSAGE_CONTENT
(1 << 15
) intent is required for your app to receive message content. In alignment with this we're making a breaking change to AutoMod, which rolled out last week.Message content is currently being exposed in the
content
andmatched_content
fields forAUTO_MODERATION_ACTION_EXECUTION
gateway events, so we're updating its behavior to match other content fields across the API. Starting next week, apps using API v10+ will start receiving empty strings forcontent
andmatched_content
unless the app has theMESSAGE_CONTENT
intent.What do I need to do?
If your app depends on
matched_content
orcontent
inAUTO_MODERATION_ACTION_EXECUTION
events, remove that dependency OR make sure your app is using theMESSAGE_CONTENT
(1 << 15
) intent.When will the change go in effect?
The change will rollout next Monday, June 27. While we technically consider this a bug fix (as no message content should be exposed in API v10+), we realize it's also a breaking change so we're going to hold off deployment of the change until next week.
Beta Was this translation helpful? Give feedback.
All reactions