Skip to content

ChannelChatClearMessage

The message received by the ChannelChatClear event.

Extends

Type parameters

Type parameterValue
K extends ConnectionTypesConnectionTypes

Constructors

new ChannelChatClearMessage()

1
new ChannelChatClearMessage<K>(
2
connection: K,
3
subscription: SubscriptionType<ChannelChatClear, K>,
4
data: ChannelChatClearEvent): ChannelChatClearMessage<K>

Builds up a ChannelChatClear message.

Parameters

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

Returns

ChannelChatClearMessage<K>

Overrides

BaseSubscriptionMessage.constructor

Source

twitchfy/packages/eventsub/src/structures/messages/ChannelChatClear/ChannelChatClearMessage.ts:23

Properties

PropertyModifierTypeDescriptionInherited from
broadcasterreadonlyBaseUser<ChannelChatClear, K>The broadcaster of the channel where the chat was cleared.-
connectionreadonlyKThe EventSub connection used.BaseSubscriptionMessage.connection
subscriptionreadonlySubscriptionType<ChannelChatClear, K>The subscription which trigger this message.BaseSubscriptionMessage.subscription

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