UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

12 lines (11 loc) 559 B
import type { ChannelChatMessageMessage } from '@twitchfy/eventsub'; import type { EventSubConnection } from '../enums'; import { type ChatBot } from '../structures'; import type { EventSubConnectionMap } from '../interfaces'; /** * Handle the message received from the chat. * @param this The current instance of the chatbot. * @param data The message received from the chat. * @internal */ export declare function handleOnMessage<T extends EventSubConnection>(this: ChatBot<T>, data: ChannelChatMessageMessage<EventSubConnectionMap[T]>): Promise<any>;