Skip to content

StreamOnline

Represents a stream online event.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new StreamOnline()

1
new StreamOnline<T>(chatbot: ChatBot<T>, data: StreamOnlineMessage<EventSubConnectionMap[T]>): StreamOnline<T>

Creates a new instance of the stream online event.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
dataStreamOnlineMessage<EventSubConnectionMap[T]>The data of the stream online event returned from the EventSub.

Returns

StreamOnline<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/StreamOnline.ts:34

Properties

PropertyModifierTypeDescriptionInherited from
broadcasterreadonlyBaseUser<T>The broadcaster of the channel whose stream went online.-
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot
streamreadonlyBaseStream<T>The stream which went online.-

Accessors

broadcasterId

1
get broadcasterId(): string

The Id of the broadcaster whose stream went online.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/StreamOnline.ts:44


chatroomId

1
get chatroomId(): string

The Id of the chatroom where the stream went online.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/StreamOnline.ts:51


startedAt

1
get startedAt(): Date

Returns the time when the stream went online. A JavaScript Date object is returned.

Returns

Date

Source

twitchfy/packages/chatbot/src/structures/StreamOnline.ts:58