Viewer
A message user structure
Methods
ban(reason)
Ban this Viewer from Channel
Parameters
reason? - ban reason (string)
Returns: Promise<Viewer>
timeout(time)
Timeout viewer from channel
Parameters
time? - timeout time in Milliseconds (number)
Returns: Promise<Viewer>
Properties
Name
Type
Description
username
string
Viewer display name
id
string
Viewer id
mod
boolean
Whether the viewer is mod
color
?string
Viewers channel color
badges
string
Viewers chat badges
subscriber
boolean
Whether the viewer is a subscriber on this channel
Last updated
Was this helpful?