UserNotice

sealed class UserNotice : IrcMessage

A USERNOTICE message dispatched by Twitch for subscriptions, raids, watch streaks, and other channel events. Subclasses represent specific msg-id values.

Inheritors

Types

Link copied to clipboard
class Raid(channel: String, tags: Map<String, String>, userId: String, userLogin: String, displayName: String, systemMessage: String, val viewerCount: Int) : IrcMessage.UserNotice

Incoming raid (msg-id=raid).

Link copied to clipboard
class Resub(channel: String, tags: Map<String, String>, userId: String, userLogin: String, displayName: String, systemMessage: String, val tier: SubTier, val cumulativeMonths: Int, val streakMonths: Int?, val userMessage: String?) : IrcMessage.UserNotice

Resubscription (msg-id=resub).

Link copied to clipboard
class Sub(channel: String, tags: Map<String, String>, userId: String, userLogin: String, displayName: String, systemMessage: String, val tier: SubTier, val isGift: Boolean) : IrcMessage.UserNotice

New subscription (msg-id=sub).

Link copied to clipboard
class SubGift(channel: String, tags: Map<String, String>, userId: String, userLogin: String, displayName: String, systemMessage: String, val tier: SubTier, val recipientLogin: String, val recipientDisplayName: String) : IrcMessage.UserNotice

Gifted subscription (msg-id=subgift).

Link copied to clipboard
class Unknown(channel: String, tags: Map<String, String>, userId: String, userLogin: String, displayName: String, systemMessage: String, val msgId: String) : IrcMessage.UserNotice

Catch-all for unrecognized msg-id values.

Link copied to clipboard
class WatchStreak(channel: String, tags: Map<String, String>, userId: String, userLogin: String, displayName: String, systemMessage: String, val streakMonths: Int, val userMessage: String?) : IrcMessage.UserNotice

Viewer milestone: watch streak (msg-id=viewer-milestone, msg-param-category=watch-streak).

Properties

Link copied to clipboard
open override val channel: String

Channel name without the # prefix.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val tags: Map<String, String>

Raw IRCv3 tags for direct access when typed fields are insufficient.

Link copied to clipboard
Link copied to clipboard