@twurple/api
Version:
Interact with Twitch's API.
43 lines • 1.28 kB
TypeScript
import { DataObject } from '@twurple/common';
import { type HelixChannelReferenceData } from '../../interfaces/endpoints/channel.external';
import type { HelixGame } from '../game/HelixGame';
import type { HelixUser } from '../user/HelixUser';
import type { HelixChannel } from './HelixChannel';
/**
* A reference to a Twitch channel.
*/
export declare class HelixChannelReference extends DataObject<HelixChannelReferenceData> {
/**
* The ID of the channel.
*/
get id(): string;
/**
* The display name of the channel.
*/
get displayName(): string;
/**
* Gets more information about the channel.
*/
getChannel(): Promise<HelixChannel>;
/**
* Gets more information about the broadcaster of the channel.
*/
getBroadcaster(): Promise<HelixUser>;
/**
* The ID of the game currently played on the channel.
*/
get gameId(): string;
/**
* The name of the game currently played on the channel.
*/
get gameName(): string;
/**
* Gets information about the game that is being played on the stream.
*/
getGame(): Promise<HelixGame | null>;
/**
* The title of the channel.
*/
get title(): string;
}
//# sourceMappingURL=HelixChannelReference.d.ts.map