getChatters
suspend fun getChatters(broadcasterId: String, moderatorId: String, cursor: String? = null, pageSize: Int? = null): Page<Chatter>
Fetches a single page of users connected to the broadcaster's chat session.
NOTE: There is a delay between when users join and leave a chat and when the list is updated accordingly.
Return
a Page containing the chatters on this page and the cursor for the next page.
Parameters
broadcasterId
the ID of the broadcaster whose list of chatters you want to get.
moderatorId
the ID of the broadcaster or one of the broadcaster's moderators. This ID must match the user ID in the user access token.
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–1000). null uses the API default (100).