getUnbanRequests

suspend fun getUnbanRequests(broadcasterId: String, moderatorId: String, status: UnbanRequestStatus = UnbanRequestStatus.PENDING, userId: String? = null, cursor: String? = null, pageSize: Int? = null): Page<UnbanRequestResponse>

Twitch API: Get Unban Requests

Gets a single page of unban requests for a broadcaster's channel.

Return

a Page of UnbanRequestResponse objects.

Parameters

broadcasterId

the ID of the broadcaster whose channel is receiving unban requests.

moderatorId

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

status

filter by a status: pending, approved, denied, acknowledged, canceled.

userId

the ID used to filter what unban requests are returned.

cursor

the cursor used to get the next page of results.

pageSize

the maximum number of items to return per page. Null uses the API default.