ChannelFollow
Represents a channel follow event.
Extends
Base<T>
Type parameters
| Type parameter |
|---|
T extends EventSubConnection |
Constructors
new ChannelFollow()
1new ChannelFollow<T>(chatbot: ChatBot<T>, data: ChannelFollowMessage<EventSubConnectionMap[T]>): ChannelFollow<T>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
1get broadcasterId(): stringThe Id of the broadcaster who was followed.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:49
chatroomId
1get chatroomId(): stringThe Id of the chatroom where the follow event occurred.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:63
followerId
1get followerId(): stringThe Id of the follower who followed the channel.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:56