UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

20 lines (19 loc) 959 B
import type { ChannelChatMessageMessage } from '@twitchfy/eventsub'; import type { EventSubConnectionMap } from '../interfaces'; import type { EventSubConnection } from '../enums'; import type { OptionsRecord } from '../types'; import type { ChatBot } from '../structures'; import { BaseUser, Collection } 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): { [x: string]: string | number | boolean | BaseUser<T> | Collection<T, BaseUser<T>> | null; };