ChannelFollow
Represents a channel follow event.
Extends
Base
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new ChannelFollow()
Creates a new instance of the channel follow event.
Parameters
Parameter | Type | Description |
---|---|---|
chatbot | ChatBot <T > | The current instance of the chatbot. |
data | ChannelFollowMessage <EventSubConnectionMap [T ]> | The data of the follow event returned from the EventSub. |
Returns
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:38
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
broadcaster | readonly | BaseUser <T > | The broadcaster of the channel who was followed. | - |
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | Base.chatbot |
followedAt | readonly | Date | The date when the follower followed the channel. | - |
follower | readonly | BaseUser <T > | The follower who followed the channel. | - |
Accessors
broadcasterId
The Id of the broadcaster who was followed.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:49
chatroomId
The Id of the chatroom where the follow event occurred.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:63
followerId
The Id of the follower who followed the channel.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:56