ChatterManager
Represents a chatter manager of a chatroom.
Extends
Base<T>
Type parameters
| Type parameter |
|---|
T extends EventSubConnection |
Constructors
new ChatterManager()
1new ChatterManager<T>(chatbot: ChatBot<T>, chatroom: ChatRoom<T>): ChatterManager<T>Creates a new instance of the chatter manager.
Parameters
| Parameter | Type | Description |
|---|---|---|
chatbot | ChatBot<T> | The current instance of the chatbot. |
chatroom | ChatRoom<T> | The chatroom of the chatter manager. |
Returns
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/managers/ChatterManager.ts:21
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
chatbot | readonly | ChatBot<T> | The current instance of the chatbot. | Base.chatbot |
chatroom | readonly | ChatRoom<T> | The chatroom of the chatter manager. | - |
Methods
count()
1count(): 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()
1fetch(): 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