UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

21 lines (20 loc) 698 B
import { Base } from '../Base'; import { User } from '../User'; import type { ChatBot } from '../ChatBot'; import type { EventSubConnection } from 'enums'; /** * The user manager of the chatbot. */ export declare class ChatBotUserManager<T extends EventSubConnection> extends Base<T> { /** * Creates a new instance of the user manager. * @param chatbot The current instance of the chatbot. */ constructor(chatbot: ChatBot<T>); /** * Fetches a specific user. * @param userIdentificator The id or login of the user to fetch. * @returns A class representation of the user. See {@link User}. */ fetch(userIdentificator: string): Promise<User<T>>; }