updateAutoModSettings

suspend fun updateAutoModSettings(broadcasterId: String, moderatorId: String, request: UpdateAutoModSettingsRequest): AutoModSettings

Twitch API: Update AutoMod Settings

Updates the broadcaster's AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster's chat room.

Because PUT is an overwrite operation, you must include all the fields that you want set after the operation completes. You may set either overallLevel or the individual settings like aggression, but not both.

Return

the updated AutoMod settings.

Parameters

broadcasterId

the ID of the broadcaster whose AutoMod settings you want to update.

moderatorId

the ID of the broadcaster or a user that has permission to moderate the broadcaster's chat room. This ID must match the user ID in the user access token.

request

the AutoMod settings to apply.