@twitchfy/chatbot
Version:
A powerful node module to make your own Twitch ChatBot
17 lines (16 loc) • 863 B
TypeScript
import type { ChannelChatMessageMessage } from '@twitchfy/eventsub';
import type { EventSubConnectionMap } from '../interfaces';
import type { EventSubConnection } from '../enums';
import type { CommandOptionsAux, OptionsRecord } from '../types';
import type { ChatBot } from '../structures';
/**
* Parses the options of a command.
* @param chatbot The current instance of the chatbot.
* @param content The content of the message.
* @param options The options of the command.
* @param data The data of the message.
* @param operator The operator of the command.
* @returns The parsed options.
* @internal
*/
export declare function optionsParser<T extends EventSubConnection>(chatbot: ChatBot<T>, content: string, options: OptionsRecord, data: ChannelChatMessageMessage<EventSubConnectionMap[T]>, operator: string): CommandOptionsAux<T, typeof options>;