ChannelChatClearMessage
The message received by the ChannelChatClear event.
Extends
BaseSubscriptionMessage<SubscriptionTypes.ChannelChatClear,K>
Type parameters
| Type parameter | Value |
|---|---|
K extends ConnectionTypes | ConnectionTypes |
Constructors
new ChannelChatClearMessage()
1new ChannelChatClearMessage<K>(2 connection: K,3 subscription: SubscriptionType<ChannelChatClear, K>,4data: ChannelChatClearEvent): ChannelChatClearMessage<K>Builds up a ChannelChatClear message.
Parameters
| Parameter | Type | Description |
|---|---|---|
connection | K | The EventSub connection used. |
subscription | SubscriptionType<ChannelChatClear, K> | The subscription which trigger this message. |
data | ChannelChatClearEvent | The event data received with the subscription. |
Returns
Overrides
BaseSubscriptionMessage.constructor
Source
twitchfy/packages/eventsub/src/structures/messages/ChannelChatClear/ChannelChatClearMessage.ts:23
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
broadcaster | readonly | BaseUser<ChannelChatClear, K> | The broadcaster of the channel where the chat was cleared. | - |
connection | readonly | K | The EventSub connection used. | BaseSubscriptionMessage.connection |
subscription | readonly | SubscriptionType<ChannelChatClear, K> | The subscription which trigger this message. | BaseSubscriptionMessage.subscription |
Methods
checkMessageType()
1checkMessageType<U>(type: U): this is SubscriptionMessages<K>[U]Checks whether the message is of a certain type.
Type parameters
| Type parameter | Value |
|---|---|
U extends SubscriptionTypes | SubscriptionTypes |
Parameters
| Parameter | Type | Description |
|---|---|---|
type | U | The 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