@twitchfy/chatbot
Version:
A powerful node module to make your own Twitch ChatBot
34 lines (33 loc) • 1.17 kB
TypeScript
import type { StreamOfflineMessage } from '@twitchfy/eventsub';
import type { ChatBot } from './ChatBot';
import { Base } from './Base';
import { BaseUser } from './BaseUser';
import type { EventSubConnectionMap } from '../interfaces';
import type { EventSubConnection } from '../enums';
/**
* Represents a stream offline event.
*/
export declare class StreamOffline<T extends EventSubConnection> extends Base<T> {
/**
* The broadcaster of the channel whose stream went offline.
*/
readonly broadcaster: BaseUser<T>;
/**
* The data of the stream offline event returned from the EventSub.
*/
private data;
/**
* Creates a new instance of the stream online event.
* @param chatbot The current instance of the chatbot.
* @param data The data of the stream online event returned from the EventSub.
*/
constructor(chatbot: ChatBot<T>, data: StreamOfflineMessage<EventSubConnectionMap[T]>);
/**
* The Id of the broadcaster whose stream went offline.
*/
get broadcasterId(): string;
/**
* The Id of the chatroom where the stream went offline.
*/
get chatroomId(): string;
}