UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

30 lines (29 loc) 1.02 kB
import { Base } from '../Base'; import type { ChatRoom } from '../ChatRoom'; import type { ChatBot } from '../ChatBot'; import type { EventSubConnection } from '../../enums'; /** * Represents a chatter manager of a chatroom. */ export declare class ChatterManager<T extends EventSubConnection> extends Base<T> { /** * The chatroom of the chatter manager. */ readonly chatroom: ChatRoom<T>; /** * Creates a new instance of the chatter manager. * @param chatbot The current instance of the chatbot. * @param chatroom The chatroom of the chatter manager. */ constructor(chatbot: ChatBot<T>, chatroom: ChatRoom<T>); /** * Fetches the chatters of the chatroom. * @returns The chatters of the chatroom. */ fetch(): Promise<import("structures").BaseUser<T>[]>; /** * Gets the amount of chatters in the chatroom. * @returns The amount of chatters in the chatroom. */ count(): Promise<number>; }