updateUserColor

suspend fun updateUserColor(userId: String, color: String)

Twitch API: Update User Chat Color

Updates the color used for the user's name in chat.

Parameters

userId

the ID of the user whose chat color you want to update. This ID must match the user ID in the access token.

color

the color to use for the user's name in chat. All users may specify one of the following named color values: blue, blue_violet, cadet_blue, chocolate, coral, dodger_blue, firebrick, golden_rod, green, hot_pink, orange_red, red, sea_green, spring_green, yellow_green. Turbo and Prime users may also specify a Hex color code (for example, #9146FF). If you use a Hex color code, remember to URL-encode the # as %23.