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