Skip to content

ChatBotChatterManager

Represents a chatter manager.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new ChatBotChatterManager()

1
new ChatBotChatterManager<T>(chatbot: ChatBot<T>): ChatBotChatterManager<T>

Creates a new instance of the chatter manager.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.

Returns

ChatBotChatterManager<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/managers/ChatBotChatterManager.ts:16

Properties

PropertyModifierTypeDescriptionInherited from
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot

Methods

count()

1
count(chatroomId: string): Promise<number>

Gets the amount of chatters in a chatroom.

Parameters

ParameterTypeDescription
chatroomIdstringThe id of the chatroom to count the chatters.

Returns

Promise<number>

The amount of chatters in the chatroom.

Source

twitchfy/packages/chatbot/src/structures/managers/ChatBotChatterManager.ts:34


fetch()

1
fetch(chatroomId: string): Promise<BaseUser<T>[]>

Fetches the chatters of a chatroom.

Parameters

ParameterTypeDescription
chatroomIdstringThe id of the chatroom to fetch the chatters.

Returns

Promise<BaseUser<T>[]>

The chatters of the chatroom.

Source

twitchfy/packages/chatbot/src/structures/managers/ChatBotChatterManager.ts:25