@twitchfy/chatbot
Version:
A powerful node module to make your own Twitch ChatBot
22 lines (21 loc) • 770 B
TypeScript
import { Base } from '../Base';
import type { ChatBot } from '../ChatBot';
import { Warning } from '../Warning';
import type { EventSubConnection } from '../../enums';
/**
* The warns manager of the chatbot.
*/
export declare class ChatBotWarnsManager<T extends EventSubConnection> extends Base<T> {
/**
* Creates a new instance of the warns manager.
* @param chatbot The current instance of the chatbot.
*/
constructor(chatbot: ChatBot<T>);
/**
* Creates warn for an user in a specific chatroom.
* @param chatroomId The id of the chatroom where the user will be warned.
* @param userId The id of the user to warn.
* @returns
*/
create(chatroomId: string, userId: string, reason: string): Promise<Warning<T>>;
}