ChannelFollowMessage
The message received by the ChannelFollow event.
Extends
BaseSubscriptionMessage<SubscriptionTypes.ChannelFollow,K>
Type parameters
| Type parameter | Value |
|---|---|
K extends ConnectionTypes | ConnectionTypes |
Constructors
new ChannelFollowMessage()
1new ChannelFollowMessage<K>(2 connection: K,3 subscription: SubscriptionType<ChannelFollow, K>,4data: ChannelFollowEvent): ChannelFollowMessage<K>Builds up a ChannelFollow message.
Parameters
| Parameter | Type | Description |
|---|---|---|
connection | K | The EventSub connection used. |
subscription | SubscriptionType<ChannelFollow, K> | The subscription which trigger this message. |
data | ChannelFollowEvent | The event data received with the subscription. |
Returns
Overrides
BaseSubscriptionMessage.constructor
Source
twitchfy/packages/eventsub/src/structures/messages/ChannelFollow/ChannelFollowMessage.ts:33
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
broadcaster | readonly | BaseUser<ChannelFollow, K> | The broadcaster of the channel who was followed. | - |
connection | readonly | K | The EventSub connection used. | BaseSubscriptionMessage.connection |
followedAt | readonly | Date | The Date object when the follow occurred. | - |
follower | readonly | BaseUser<ChannelFollow, K> | The follower who followed the channel. | - |
subscription | readonly | SubscriptionType<ChannelFollow, 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