getModerators

suspend fun getModerators(broadcasterId: String, userIds: List<String> = emptyList(), cursor: String? = null, pageSize: Int? = null): Page<ChannelRoleUser>

Twitch API: Get Moderators

Fetches a single page of moderators for the broadcaster's chat room.

Return

a Page containing the moderators on this page and the cursor for the next page.

Parameters

broadcasterId

the ID of the broadcaster whose list of moderators you want to get. This ID must match the user ID in the access token.

userIds

a list of user IDs used to filter the results. You may specify a maximum of 100 IDs.

cursor

the cursor used to get the next page of results. Pass null to get the first page.

pageSize

the maximum number of items to return (1–100). null uses the API default (20).