Skip to content

ChannelFollow

Represents a channel follow event.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new ChannelFollow()

1
new ChannelFollow<T>(chatbot: ChatBot<T>, data: ChannelFollowMessage<EventSubConnectionMap[T]>): ChannelFollow<T>

Creates a new instance of the channel follow event.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
dataChannelFollowMessage<EventSubConnectionMap[T]>The data of the follow event returned from the EventSub.

Returns

ChannelFollow<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:38

Properties

PropertyModifierTypeDescriptionInherited from
broadcasterreadonlyBaseUser<T>The broadcaster of the channel who was followed.-
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot
followedAtreadonlyDateThe date when the follower followed the channel.-
followerreadonlyBaseUser<T>The follower who followed the channel.-

Accessors

broadcasterId

1
get broadcasterId(): string

The Id of the broadcaster who was followed.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:49


chatroomId

1
get chatroomId(): string

The Id of the chatroom where the follow event occurred.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:63


followerId

1
get followerId(): string

The Id of the follower who followed the channel.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/ChannelFollow.ts:56