Viewer

A message user structure

Methods

ban(reason)

Ban this Viewer from Channel

  • Parameters

    • reason? - ban reason (string)

timeout(time)

Timeout viewer from channel

  • Parameters

    • time? - timeout time in Milliseconds (number)

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

channel

The channel from where the viewer was reserved

client

The client that instantiated this

Last updated

Was this helpful?