ChannelChatClearUserMessagesMessage
The message received by the ChannelChatClearUserMessages event.
Extends
BaseSubscriptionMessage
<SubscriptionTypes.ChannelChatClearUserMessages
,K
>
Type parameters
Type parameter | Value |
---|---|
K extends ConnectionTypes | ConnectionTypes |
Constructors
new ChannelChatClearUserMessagesMessage()
Builds up a ChannelChatClearUserMessages message.
Parameters
Parameter | Type | Description |
---|---|---|
connection | K | The EventSub connection used. |
subscription | SubscriptionType <ChannelChatClearUserMessages , K > | The subscription which trigger this message. |
data | ChannelChatClearUserMessagesEvent | The event data received with the subscription. |
Returns
ChannelChatClearUserMessagesMessage
<K
>
Overrides
BaseSubscriptionMessage
.constructor
Source
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
broadcaster | readonly | BaseUser <ChannelChatClearUserMessages , K > | The broadcaster of the channel where the user chat messages were cleared. | - |
connection | readonly | K | The EventSub connection used. | BaseSubscriptionMessage .connection |
subscription | readonly | SubscriptionType <ChannelChatClearUserMessages , K > | The subscription which trigger this message. | BaseSubscriptionMessage .subscription |
user | readonly | BaseUser <ChannelChatClearUserMessages , K > | The user whose messages were cleared. | - |
Methods
checkMessageType()
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