BaseMessage
The message sent by the ChannelChatMessage event.
Extends
Base
<T
,K
>
Type parameters
Type parameter | Value |
---|---|
T extends SubscriptionTypes | - |
K extends ConnectionTypes | ConnectionTypes |
Constructors
new BaseMessage()
Builds up a BaseMessage.
Parameters
Parameter | Type | Description |
---|---|---|
connection | K | The EventSub connection used. |
subscription | SubscriptionType <T , K > | The subscription which trigger this message. |
data | ChannelChatMessageEvent | The event data received with the subscription. |
Returns
BaseMessage
<T
, K
>
Overrides
Source
twitchfy/packages/eventsub/src/structures/messages/BaseMessage.ts:55
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
bits | readonly | number | The number of bits sent with the message. | - |
channelRewardId | readonly | string | The ID of the channel points reward used to send the message. Null if the message was not sent using a channel points reward. | - |
connection | readonly | K | The EventSub connection used. | Base .connection |
content | readonly | string | The content of the message. | - |
fragments | readonly | Fragment <FragmentTypes >[] | The fragments of the message. | - |
id | readonly | string | The ID of the message. | - |
reply | readonly | MessageReply | The reply to the message. Null if there is no reply. | - |
subscription | readonly | SubscriptionType <T , K > | The subscription which trigger this message. | Base .subscription |
type | readonly | MessageTypes | The type of the message. | - |