Skip to content

ChannelUpdate

Represents a channel update event.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new ChannelUpdate()

1
new ChannelUpdate<T>(chatbot: ChatBot<T>, data: ChannelUpdateMessage<EventSubConnectionMap[T]>): ChannelUpdate<T>

Creates a new instance of the channel update event.

Parameters

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

Returns

ChannelUpdate<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/ChannelUpdate.ts:48

Properties

PropertyModifierTypeDescriptionInherited from
broadcasterpublicBaseUser<T>The broadcaster of the channel who was updated.-
categorypublicCategoryThe category of the channel.-
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot
classificationLabelspublicstring[]The classification labels of the channel.-
languagepublicstringThe language of the channel.-
titlepublicstringThe title of the channel.-

Accessors

broadcasterId

1
get broadcasterId(): string

The Id of the broadcaster who was updated.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/ChannelUpdate.ts:61

Methods

channel()

1
channel(): 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