ModerationResource

Twitch Helix Moderation API resource.

Provides methods for managing bans, blocked terms, AutoMod settings, moderators, VIPs, shield mode, and suspicious users.

See also

Functions

Link copied to clipboard
suspend fun addBlockedTerm(broadcasterId: String, moderatorId: String, text: String): BlockedTerm
Link copied to clipboard
suspend fun addModerator(broadcasterId: String, userId: String)
Link copied to clipboard
Link copied to clipboard
suspend fun addVip(broadcasterId: String, userId: String)
Link copied to clipboard
suspend fun ban(broadcasterId: String, moderatorId: String, userId: String, reason: String = "", duration: Int? = null)
Link copied to clipboard
suspend fun deleteMessage(broadcasterId: String, moderatorId: String, messageId: String? = null)
Link copied to clipboard
fun getAllBanned(broadcasterId: String, userIds: List<String> = emptyList()): Flow<BannedUser>
Link copied to clipboard
Link copied to clipboard
fun getAllModerators(broadcasterId: String, userIds: List<String> = emptyList()): Flow<ChannelRoleUser>
Link copied to clipboard
fun getAllUnbanRequests(broadcasterId: String, moderatorId: String, status: UnbanRequestStatus = UnbanRequestStatus.PENDING): Flow<UnbanRequestResponse>
Link copied to clipboard
fun getAllVIPs(broadcasterId: String, userIds: List<String> = emptyList()): Flow<ChannelRoleUser>
Link copied to clipboard
Link copied to clipboard
suspend fun getBanned(broadcasterId: String, userIds: List<String> = emptyList(), cursor: String? = null, pageSize: Int? = null): Page<BannedUser>
Link copied to clipboard
suspend fun getBlockedTerms(broadcasterId: String, moderatorId: String, cursor: String? = null, pageSize: Int? = null): Page<BlockedTerm>
Link copied to clipboard
suspend fun getModeratedChannels(userId: String, cursor: String? = null, pageSize: Int? = null): Page<ModeratedChannel>
Link copied to clipboard
suspend fun getModerators(broadcasterId: String, userIds: List<String> = emptyList(), cursor: String? = null, pageSize: Int? = null): Page<ChannelRoleUser>
Link copied to clipboard
Link copied to clipboard
suspend fun getUnbanRequests(broadcasterId: String, moderatorId: String, status: UnbanRequestStatus = UnbanRequestStatus.PENDING, userId: String? = null, cursor: String? = null, pageSize: Int? = null): Page<UnbanRequestResponse>
Link copied to clipboard
suspend fun getVIPs(broadcasterId: String, userIds: List<String> = emptyList(), cursor: String? = null, pageSize: Int? = null): Page<ChannelRoleUser>
Link copied to clipboard
suspend fun removeBlockedTerm(broadcasterId: String, moderatorId: String, id: String)
Link copied to clipboard
Link copied to clipboard
suspend fun removeVip(broadcasterId: String, userId: String)
Link copied to clipboard
suspend fun resolveUnbanRequest(broadcasterId: String, moderatorId: String, unbanRequestId: String, status: UnbanRequestStatus, resolutionText: String? = null): UnbanRequestResponse
Link copied to clipboard
suspend fun sendShoutout(fromId: String, toId: String, moderatorId: String)
Link copied to clipboard
suspend fun unban(broadcasterId: String, moderatorId: String, userId: String)
Link copied to clipboard
Link copied to clipboard
suspend fun warn(broadcasterId: String, moderatorId: String, userId: String, reason: String)