UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

62 lines 2.15 kB
import type { HelixGame, HelixUser } from '@twurple/api'; import { DataObject } from '@twurple/common'; import { type EventSubChannelUpdateEventData } from './EventSubChannelUpdateEvent.external.js'; /** * An EventSub event representing a change in channel metadata. */ export declare class EventSubChannelUpdateEvent extends DataObject<EventSubChannelUpdateEventData> { /** * The ID of the broadcaster. */ get broadcasterId(): string; /** * The name of the broadcaster. */ get broadcasterName(): string; /** * The display name of the broadcaster. */ get broadcasterDisplayName(): string; /** * Gets more information about the broadcaster. */ getBroadcaster(): Promise<HelixUser>; /** * The title of the stream. */ get streamTitle(): string; /** * The language of the stream. */ get streamLanguage(): string; /** * The ID of the game that is currently being played on the channel. */ get categoryId(): string; /** * The name of the game that is currently being played on the channel. */ get categoryName(): string; /** * Gets more information about the game that is currently being played on the channel. */ getGame(): Promise<HelixGame | null>; /** * Whether the channel is flagged as suitable for mature audiences only. * * @deprecated Use {@link EventSubChannelUpdateEvent#contentClassificationLabels} to check if any content * classification labels are applied to the channel. * * Currently, this flag mimics the previous behavior by checking whether the `contentClassificationLabels` * array is not empty. * * This flag will be removed in the next major release. */ get isMature(): boolean; /** * An array of content classification label IDs currently applied on the channel. * To retrieve a list of all possible IDs, use the {@link ApiClient#contentClassificationLabels#getAll} API method. */ get contentClassificationLabels(): string[]; } //# sourceMappingURL=EventSubChannelUpdateEvent.d.ts.map