pub enum Event {
Show 21 variants
Chat(ChatLine),
Backfill(Vec<ChatLine>),
Delete {
line: Option<ChatLine>,
del: Delete,
},
Special(SpecialLine),
FeedHeat {
id: String,
heat: f64,
},
FeedHidden {
id: String,
},
Batch(Vec<Event>),
Auth(bool),
SendResult {
ok: bool,
error: Option<String>,
},
FollowLive(Vec<(Platform, String)>),
FollowHistory(Vec<(ChatLine, u64)>),
FollowColors(Vec<(String, String)>),
Pin(Platform, String, Option<Pin>),
Room(String, RoomState),
Pong,
Color {
id: Option<String>,
names: Vec<String>,
color: String,
},
Cosmetic(Vec<String>),
FeedEdit {
id: String,
text: String,
emotes: Vec<Emote>,
},
Account,
Follows,
Ignore,
}Expand description
what an inbound frame turned into.
Variants§
Chat(ChatLine)
Backfill(Vec<ChatLine>)
Delete
lines removed by a mod, plus the mod-log note to show (clearchat has one; a single deleted message doesn’t).
Special(SpecialLine)
a mention-rule hit, whisper, DM or feed row for a virtual tab.
FeedHeat
a feed row’s heat moved (heat:updated).
FeedHidden
a feed row was hidden by moderation (message:hidden).
Batch(Vec<Event>)
several events from one frame, in order.
Auth(bool)
authentication outcome (true = ok).
SendResult
result of an outbound send: ok, or an error reason.
FollowLive(Vec<(Platform, String)>)
followed channels already live at connect (follow:live:snapshot) —
catch-up, never lines.
FollowHistory(Vec<(ChatLine, u64)>)
the user’s last day of follow events (follow:history), oldest first:
each a follow stream line plus its unix-ms time.
FollowColors(Vec<(String, String)>)
follow:colors: channel login (lowercase) → #rrggbb.
Pin(Platform, String, Option<Pin>)
a channel pin was set (Some) or cleared (None).
Room(String, RoomState)
a twitch ROOMSTATE: the channel’s current chat modes.
Pong
Color
profile:color: a user’s picked name color, by paint-space id.
Fields
Cosmetic(Vec<String>)
cosmetic:changed: paints changed for these paint-space ids.
FeedEdit
message-edited / message-updated: a feed row’s text (and the emote
refs it now renders with) changed.
Account
account:changed: linked platforms or scopes moved — re-ask who I am.
Follows
follows:changed: the follow list moved — refetch it.