checkUserSubscription

suspend fun checkUserSubscription(broadcasterId: String, userId: String): Subscription?

Twitch API: Check User Subscription

Checks whether the user subscribes to the broadcaster's channel.

Return

the subscription information, or null if the user does not subscribe (404).

Parameters

broadcasterId

the ID of a partner or affiliate broadcaster.

userId

the ID of the user that you're checking to see whether they subscribe to the broadcaster. This ID must match the user ID in the access token.