violatesCategory

Checks if the specified moderation category is flagged as detected in the moderation result.

Return

true if the specified category is flagged as detected; false otherwise.

Parameters

category

The moderation category to verify within the current moderation result.