ChannelUpdate
Represents a channel update event.
Extends
Base<T>
Type parameters
| Type parameter |
|---|
T extends EventSubConnection |
Constructors
new ChannelUpdate()
1new ChannelUpdate<T>(chatbot: ChatBot<T>, data: ChannelUpdateMessage<EventSubConnectionMap[T]>): ChannelUpdate<T>Creates a new instance of the channel update event.
Parameters
| Parameter | Type | Description |
|---|---|---|
chatbot | ChatBot<T> | The current instance of the chatbot. |
data | ChannelUpdateMessage<EventSubConnectionMap[T]> | The data of the update event returned from the EventSub. |
Returns
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/ChannelUpdate.ts:48
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
broadcaster | public | BaseUser<T> | The broadcaster of the channel who was updated. | - |
category | public | Category | The category of the channel. | - |
chatbot | readonly | ChatBot<T> | The current instance of the chatbot. | Base.chatbot |
classificationLabels | public | string[] | The classification labels of the channel. | - |
language | public | string | The language of the channel. | - |
title | public | string | The title of the channel. | - |
Accessors
broadcasterId
1get broadcasterId(): stringThe Id of the broadcaster who was updated.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/ChannelUpdate.ts:61
Methods
channel()
1channel(): Promise<Channel<T>>Fetches the channel from the API.
Returns
Promise<Channel<T>>
The fetched channel from the API.
Source
twitchfy/packages/chatbot/src/structures/ChannelUpdate.ts:69