twitch-core
Version:
Twitch bot command client
15 lines (14 loc) • 468 B
TypeScript
import { TwitchCommandClient } from '../client/TwitchCommandClient';
interface CommandArguments {
command: string;
prefix?: string;
args?: string[];
}
declare type CommandParsed = Required<CommandArguments>;
declare class CommandParser {
private client;
constructor(client: TwitchCommandClient);
parse(message: string, prefix: string): CommandParsed | null;
private escapePrefix;
}
export { CommandParser, CommandArguments };