ChatResource

Twitch Helix Chat API resource.

Provides methods for managing chat messages, emotes, badges, settings, colors, announcements, shared chat sessions, and user emotes.

See also

Functions

Link copied to clipboard
fun getAllChatters(broadcasterId: String, moderatorId: String, pageSize: Int = 1000): Flow<Chatter>

Returns a paginated Flow of all users in the broadcaster's chat room. Automatically follows pagination cursors until all chatters have been fetched.

Link copied to clipboard
fun getAllUserEmotes(userId: String, broadcasterId: String? = null): Flow<UserEmote>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getChatters(broadcasterId: String, moderatorId: String, cursor: String? = null, pageSize: Int? = null): Page<Chatter>
Link copied to clipboard
Link copied to clipboard
suspend fun getSettings(broadcasterId: String, moderatorId: String? = null): ChatSettings
Link copied to clipboard
Link copied to clipboard
suspend fun getUserEmotes(userId: String, cursor: String? = null, broadcasterId: String? = null): Page<UserEmote>
Link copied to clipboard
suspend fun sendAnnouncement(broadcasterId: String, moderatorId: String, message: String, color: AnnouncementColor = AnnouncementColor.PRIMARY, sourceOnly: Boolean? = null)
Link copied to clipboard
suspend fun updateSettings(broadcasterId: String, moderatorId: String, slowMode: Boolean? = null, slowModeWaitTime: Int? = null, followerMode: Boolean? = null, followerModeDuration: Int? = null, subscriberMode: Boolean? = null, emoteMode: Boolean? = null, uniqueChatMode: Boolean? = null, nonModeratorChatDelay: Boolean? = null, nonModeratorChatDelayDuration: Int? = null): ChatSettings
Link copied to clipboard