pub fn auto_moderation_metadata_keyword_filter(
    keywords: &[impl AsRef<str>]
) -> Result<(), ValidationError>
Expand description

Ensure that an auto moderation rule’s keyword_filter is correct.

The length must be at most AUTO_MODERATION_METADATA_KEYWORD_FILTER_LENGTH_MAX. This is based on this documentation entry.

§Errors

Returns an error of type AutoModerationMetadataKeywordFilter if the length is invalid.

Returns an error of type AutoModerationMetadataKeywordFilterItem if any of the keywords are invalid.