Skip to content

ChatterManager

Represents a chatter manager of a chatroom.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new ChatterManager()

1
new ChatterManager<T>(chatbot: ChatBot<T>, chatroom: ChatRoom<T>): ChatterManager<T>

Creates a new instance of the chatter manager.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
chatroomChatRoom<T>The chatroom of the chatter manager.

Returns

ChatterManager<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/managers/ChatterManager.ts:21

Properties

PropertyModifierTypeDescriptionInherited from
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot
chatroomreadonlyChatRoom<T>The chatroom of the chatter manager.-

Methods

count()

1
count(): Promise<number>

Gets the amount of chatters in the chatroom.

Returns

Promise<number>

The amount of chatters in the chatroom.

Source

twitchfy/packages/chatbot/src/structures/managers/ChatterManager.ts:38


fetch()

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

Fetches the chatters of the chatroom.

Returns

Promise<BaseUser<T>[]>

The chatters of the chatroom.

Source

twitchfy/packages/chatbot/src/structures/managers/ChatterManager.ts:30