UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

34 lines (33 loc) 1.17 kB
import type { ChannelChatClearMessage } from '@twitchfy/eventsub'; import { Base } from './Base'; import { BaseUser } from './BaseUser'; import type { ChatBot } from './ChatBot'; import type { EventSubConnection } from '../enums'; import type { EventSubConnectionMap } from '../interfaces'; /** * Represents a channel chat clear event. */ export declare class ChannelChatClear<T extends EventSubConnection> extends Base<T> { /** * The broadcaster of the channel whose chat was cleared. */ readonly broadcaster: BaseUser<T>; /** * The data of the chat clear event returned from the EventSub. */ private data; /** * Creates a new instance of the channel chat clear event. * @param chatbot The current instance of the chatbot. * @param data The data of the chat clear event returned from the EventSub. */ constructor(chatbot: ChatBot<T>, data: ChannelChatClearMessage<EventSubConnectionMap[T]>); /** * The Id of the broadcaster whose chat was cleared. */ get broadcasterId(): string; /** * The Id of the chatroom where the chat was cleared. */ get chatroomId(): string; }