getSettings

suspend fun getSettings(broadcasterId: String, moderatorId: String? = null): ChatSettings

Twitch API: Get Chat Settings

Gets the broadcaster's chat settings.

To include the non_moderator_chat_delay and non_moderator_chat_delay_duration settings in the response, you must specify a user access token that includes the moderator:read:chat_settings scope. The moderatorId must match the user ID in the access token.

Return

the chat settings for the specified broadcaster's channel.

Parameters

broadcasterId

the ID of the broadcaster whose chat settings you want to get.

moderatorId

the ID of the broadcaster or one of the broadcaster's moderators. Required only if you want to include the non_moderator_chat_delay and non_moderator_chat_delay_duration settings in the response.