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