Skip to content

BaseMessage

The message sent by the ChannelChatMessage event.

Extends

Type parameters

Type parameterValue
T extends SubscriptionTypes-
K extends ConnectionTypesConnectionTypes

Constructors

new BaseMessage()

1
new BaseMessage<T, K>(
2
connection: K,
3
subscription: SubscriptionType<T, K>,
4
data: ChannelChatMessageEvent): BaseMessage<T, K>

Builds up a BaseMessage.

Parameters

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

Returns

BaseMessage<T, K>

Overrides

Base.constructor

Source

twitchfy/packages/eventsub/src/structures/messages/BaseMessage.ts:55

Properties

PropertyModifierTypeDescriptionInherited from
bitsreadonlynumberThe number of bits sent with the message.-
channelRewardIdreadonlystringThe ID of the channel points reward used to send the message. Null if the message was not sent using a channel points reward.-
connectionreadonlyKThe EventSub connection used.Base.connection
contentreadonlystringThe content of the message.-
fragmentsreadonlyFragment<FragmentTypes>[]The fragments of the message.-
idreadonlystringThe ID of the message.-
replyreadonlyMessageReplyThe reply to the message. Null if there is no reply.-
subscriptionreadonlySubscriptionType<T, K>The subscription which trigger this message.Base.subscription
typereadonlyMessageTypesThe type of the message.-