pub fn auto_moderation_metadata_regex_patterns_item(
pattern: impl AsRef<str>,
) -> Result<(), ValidationError>
Expand description
Ensure that an auto moderation rule’s regex_patterns
item is correct.
The length must be at most AUTO_MODERATION_METADATA_REGEX_PATTERNS_LENGTH_MAX
.
This is based on this documentation entry.
§Errors
Returns an error of type AutoModerationMetadataRegexPatternsItem
if the
length is invalid.