@twitchfy/chatbot
Version:
A powerful node module to make your own Twitch ChatBot
45 lines (44 loc) • 1.32 kB
TypeScript
import type { Channel as ChannelData } from '@twitchfy/api-types';
import type { ChatBot } from './ChatBot';
import type { EventSubConnection } from '../enums';
import type { Game } from '../interfaces';
import { BaseChannel } from './BaseChannel';
/**
* Represents a Twitch channel.
*/
export declare class Channel<T extends EventSubConnection> extends BaseChannel<T> {
/**
* The game which was currently set into the channel.
*/
readonly game: Game;
/**
* The tags of the channel.
*/
readonly tags: string[];
/**
* The classification labels of the channel.
*/
readonly classificationLabels: string[];
/**
* Whether the channel has branded content.
*/
readonly isBrandedContent: boolean;
/**
* The data of the channel returned from the API.
*/
private data;
/**
* Creates a new instance of the channel.
* @param chatbot The current instance of the chatbot.
* @param data The data of the channel returned from the API.
*/
constructor(chatbot: ChatBot<T>, data: ChannelData);
/**
* The title of the channel. If it was never set, it will return a nullish value.
*/
get title(): string | null;
/**
* The language that was set to the channel.
*/
get language(): string;
}