Skip to content

Conversation

@Mateo-tem
Copy link
Contributor

@Mateo-tem Mateo-tem commented May 1, 2022

Just adds the documentation for auto-moderation, the new feature of Discord.
See https://support.discord.com/hc/en-us/articles/4421269296535.

@RedDaedalus
Copy link
Member

I'm guessing this will be documented along with the rest of auto mod features when it becomes open to bots.

@i0bs
Copy link
Contributor

i0bs commented May 1, 2022

This is still being rolled out with a beta pill in servers. That gives reason for me to believe it's still WIP, so PRing docs now doesn't seem to be necessary

@Mateo-tem
Copy link
Contributor Author

I will mark this as a draft until Discord adds the feature completely and for all the servers.

Copy link
Contributor

@splatterxl splatterxl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/discord/discord-api-docs/blob/main/CONTRIBUTING.md

Unwanted changes
Additions that document unreleased product functionality

@advaith1
Copy link
Contributor

advaith1 commented May 1, 2022

in addition to what others have said, message type 24 is AUTO_MODERATION_ACTION

@Le0Developer
Copy link
Contributor

There's also a new guild feature flag: AUTO_MODERATION

@Mateo-tem Mateo-tem changed the title add message type and embed type for AutoMod alerts add auto moderation documentation May 1, 2022
@Mateo-tem Mateo-tem changed the title add auto moderation documentation add auto-mod documentation May 1, 2022
@Mateo-tem
Copy link
Contributor Author

I noticed one audit log event is missing. The event has the 143 action type.
Is emitted when the AutoMod system user blocks a message of a user in a channel according to an auto-moderation rule.
What would be/is the name of the event?

@advaith1
Copy link
Contributor

advaith1 commented May 6, 2022

AUTO_MODERATION_BLOCK_MESSAGE

@splatterxl
Copy link
Contributor

Is there a route to update automod rules?

Copy link
Contributor

@advaith1 advaith1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, when will the automod message format be stabilized? can it be changed to have an object of data instead of abusing embed fields

@hemu
Copy link
Contributor

hemu commented Jun 16, 2022

@hemu Let me know if all is right to mark this as ready for review.

sounds good :) feel free to mark it for review

@hemu
Copy link
Contributor

hemu commented Jun 16, 2022

I added this section to explain the different ways keywords can match based on how you use the * wildcard. If it's not clear it's something we can iterate on and improve as a follow up
image

@Mateo-tem
Copy link
Contributor Author

@hemu Let me know if all is right to mark this as ready for review.

sounds good :) feel free to mark it for review

All right!

@Mateo-tem
Copy link
Contributor Author

I added this section to explain the different ways keywords can match based on how you use the * wildcard. If it's not clear it's something we can iterate on and improve as a follow up

Nice!

@Mateo-tem Mateo-tem marked this pull request as ready for review June 16, 2022 04:11
@hemu
Copy link
Contributor

hemu commented Jun 16, 2022

also, when will the automod message format be stabilized? can it be changed to have an object of data instead of abusing embed fields

This is planned for later on after the initial launch. Yes, the data will be contained in a single object field instead of using embed fields.

@hemu
Copy link
Contributor

hemu commented Jun 16, 2022

Thank you to everyone that took the time to contribute and offer feedback :) Really appreciate all the helpful suggestions we received to improve both these docs and the API for Automod. Going to merge this in but if there are more errors / suggestions feel free to continue commenting on this PR -- will continue checking here for the next week or so.

Co-authored-by: Splatterxl <[email protected]>
@hemu hemu changed the title add auto-mod documentation Add Automod documentation Jun 16, 2022
@hemu hemu merged commit d3d478c into discord:main Jun 16, 2022
@onerandomusername
Copy link
Contributor

onerandomusername commented Jun 16, 2022

@hemu Will there be an audit log event for automatic timeouts? Right now the audit log does not mention that the user was timed out at all, and no audit log entry is created if the only action taken is timing out the user.

@hemu
Copy link
Contributor

hemu commented Jun 16, 2022

@hemu Will there be an audit log event for automatic timeouts? Right now the audit log does not mention that the user was timed out at all, and no event is created if the only action taken is timing out the user.

Yes, support for the timeout action will be added to the audit log

shaydewael added a commit that referenced this pull request Jun 17, 2022
Co-authored-by: advaith <[email protected]>
Co-authored-by: Jupith <[email protected]>
Co-authored-by: Bryan Fernandes <[email protected]>
Co-authored-by: Vitor <[email protected]>
Co-authored-by: Zane Pereira <[email protected]>
Co-authored-by: Shay DeWael <[email protected]>
Co-authored-by: Splatterxl <[email protected]>
Co-authored-by: Hemu <[email protected]>
@Mateo-tem Mateo-tem deleted the auto-moderation branch September 15, 2022 02:23
@Jiralite Jiralite mentioned this pull request Nov 12, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.