UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

27 lines (26 loc) 971 B
import { Base } from '../Base'; import { BaseUser } from '../BaseUser'; import type { ChatBot } from '../ChatBot'; import type { EventSubConnection } from '../../enums'; /** * Represents a chatter manager. */ export declare class ChatBotChatterManager<T extends EventSubConnection> extends Base<T> { /** * Creates a new instance of the chatter manager. * @param chatbot The current instance of the chatbot. */ constructor(chatbot: ChatBot<T>); /** * Fetches the chatters of a chatroom. * @param chatroomId The id of the chatroom to fetch the chatters. * @returns The chatters of the chatroom. */ fetch(chatroomId: string): Promise<BaseUser<T>[]>; /** * Gets the amount of chatters in a chatroom. * @param chatroomId The id of the chatroom to count the chatters. * @returns The amount of chatters in the chatroom. */ count(chatroomId: string): Promise<number>; }