Skip to content

ChannelUpdateMessage

The message received by the ChannelUpdate event.

Extends

Type parameters

Type parameterValue
K extends ConnectionTypesConnectionTypes

Constructors

new ChannelUpdateMessage()

1
new ChannelUpdateMessage<K>(
2
connection: K,
3
subscription: SubscriptionType<ChannelUpdate, K>,
4
data: ChannelUpdateEvent): ChannelUpdateMessage<K>

Builds up a ChannelUpdate message.

Parameters

ParameterTypeDescription
connectionKThe EventSub connection used.
subscriptionSubscriptionType<ChannelUpdate, K>The subscription which trigger this message.
dataChannelUpdateEventThe event data received with the subscription.

Returns

ChannelUpdateMessage<K>

Overrides

BaseSubscriptionMessage.constructor

Source

twitchfy/packages/eventsub/src/structures/messages/ChannelUpdate/ChannelUpdateMessage.ts:45

Properties

PropertyModifierTypeDescriptionInherited from
broadcasterreadonlyBaseUser<ChannelUpdate, K>The broadcaster of the channel which was updated.-
categoryreadonlyChannelUpdateCategory<K>The category of the channel after it was updated.-
connectionreadonlyKThe EventSub connection used.BaseSubscriptionMessage.connection
labelsreadonlystring[]The content classification labels of the channel after it was updated.-
languagereadonlystringThe language of the channel after it was updated.-
subscriptionreadonlySubscriptionType<ChannelUpdate, K>The subscription which trigger this message.BaseSubscriptionMessage.subscription
titlereadonlystringThe title of the channel after it was updated.-

Methods

checkMessageType()

1
checkMessageType<U>(type: U): this is SubscriptionMessages<K>[U]

Checks whether the message is of a certain type.

Type parameters

Type parameterValue
U extends SubscriptionTypesSubscriptionTypes

Parameters

ParameterTypeDescription
typeUThe type to check.

Returns

this is SubscriptionMessages<K>[U]

Whether the message is of the type.

Inherited from

BaseSubscriptionMessage.checkMessageType

Source

twitchfy/packages/eventsub/src/structures/messages/BaseSubscriptionMessage.ts:24