blockUser

suspend fun blockUser(targetUserId: String, sourceContext: BlockSourceContext? = null, reason: BlockReason? = null)

Twitch API: Block User

Blocks the specified user from interacting with or being followed by the broadcaster. The user ID in the OAuth token identifies the broadcaster who is blocking the user.

Parameters

targetUserId

the ID of the user to block.

sourceContext

the location where the harassment took place that is causing the broadcaster to block the user. Possible values are: chat, whisper.

reason

the reason the broadcaster is blocking the user. Possible values are: harassment, spam, other.