StreamOffline
Represents a stream offline event.
Extends
Base
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new StreamOffline()
1new StreamOffline<T>(chatbot: ChatBot<T>, data: StreamOfflineMessage<EventSubConnectionMap[T]>): StreamOffline<T>
Creates a new instance of the stream online event.
Parameters
Parameter | Type | Description |
---|---|---|
chatbot | ChatBot <T > | The current instance of the chatbot. |
data | StreamOfflineMessage <EventSubConnectionMap [T ]> | The data of the stream online event returned from the EventSub. |
Returns
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/StreamOffline.ts:28
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
broadcaster | readonly | BaseUser <T > | The broadcaster of the channel whose stream went offline. | - |
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | Base.chatbot |
Accessors
broadcasterId
1get broadcasterId(): string
The Id of the broadcaster whose stream went offline.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/StreamOffline.ts:37
chatroomId
1get chatroomId(): string
The Id of the chatroom where the stream went offline.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/StreamOffline.ts:44