Skip to content

StreamOffline

Represents a stream offline event.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new StreamOffline()

1
new StreamOffline<T>(chatbot: ChatBot<T>, data: StreamOfflineMessage<EventSubConnectionMap[T]>): StreamOffline<T>

Creates a new instance of the stream online event.

Parameters

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

Returns

StreamOffline<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/StreamOffline.ts:28

Properties

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

Accessors

broadcasterId

1
get broadcasterId(): string

The Id of the broadcaster whose stream went offline.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/StreamOffline.ts:37


chatroomId

1
get chatroomId(): string

The Id of the chatroom where the stream went offline.

Returns

string

Source

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