UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

32 lines (31 loc) 1.14 kB
import { Base } from './Base'; import type { ChatBot } from './ChatBot'; import type { ChatRoom } from './ChatRoom'; import { MessageReplyParent } from './MessageReplyParent'; import { MessageReplyThread } from './MessageReplyThread'; import type { EventSubConnection } from '../enums'; import type { MessageData } from '../types'; /** * Represents a message reply. */ export declare class MessageReply<T extends EventSubConnection> extends Base<T> { /** * The parent of the reply. This is the message which was replied. */ readonly parent: MessageReplyParent<T>; /** * The thread of the reply. This is the message which started the reply thread. */ readonly thread: MessageReplyThread<T>; /** * The data of the reply. */ private data; /** * Creates a new instance of the message reply. * @param chatbot The current instance of the chatbot. * @param data The data of the reply. * @param chatroom The chatroom where the reply was sent. */ constructor(chatbot: ChatBot<T>, data: NonNullable<MessageData<T>['message']['reply']>, chatroom: ChatRoom<T>); }