UNPKG

twitch-core

Version:
16 lines (15 loc) 1.09 kB
import { TwitchChatMessage } from '../../messages/TwitchChatMessage'; import { TwitchCommandClient } from '../../client/TwitchCommandClient'; import { TwitchChatCommand, CommandOptions, MessageType, UserLevel } from '../TwitchChatCommand'; export default class TextCommandsManager extends TwitchChatCommand { private provider; constructor(client: TwitchCommandClient, options: CommandOptions); prepareRun(msg: TwitchChatMessage, args: string[]): Promise<[string, string] | [string]>; set(msg: TwitchChatMessage, name: string, text: string): Promise<[string, string] | [string]>; get(msg: TwitchChatMessage, name: string): void; unset(msg: TwitchChatMessage, name: string): void; updateUserLevel(msg: TwitchChatMessage, name: string, userlevel: UserLevel): void; updateMessageType(msg: TwitchChatMessage, name: string, messageType: MessageType): void; updateCommandOptions(msg: TwitchChatMessage, name: string, { ...options }: Partial<CommandOptions>): void; updateCommandName(msg: TwitchChatMessage, command: string, opts: string): void; }