@twitchfy/chatbot
Version:
A powerful node module to make your own Twitch ChatBot
33 lines (32 loc) • 1.18 kB
TypeScript
import type { PutAutoModSettingsBody } from '@twitchfy/api-types';
import type { AutoMod } from '../AutoMod';
import { AutoModSettings } from '../AutoModSettings';
import type { ChatBot } from '../ChatBot';
import { Base } from '../Base';
import type { EventSubConnection } from '../../enums';
/**
* Represents the manager for the settings of the autmod.
*/
export declare class AutoModSettingsManager<T extends EventSubConnection> extends Base<T> {
/**
* The automod instance.
*/
automod: AutoMod<T>;
/**
* Creates a new instance of the automod settings manager.
* @param chatbot The current instance of the chatbot.
* @param automod The automod instance.
*/
constructor(chatbot: ChatBot<T>, automod: AutoMod<T>);
/**
* Edits the automod settings.
* @param options The options to edit the automod settings.
* @returns The new settings of the automod.
*/
edit(options: PutAutoModSettingsBody): Promise<AutoModSettings<T>>;
/**
* Fetches the current settings of the automod from the API.
* @returns The current settings of the automod.
*/
fetch(): Promise<AutoModSettings<T>>;
}