@twurple/eventsub-base
Version:
Base for the other Twurple EventSub packages
50 lines • 1.41 kB
TypeScript
import type { HelixUser } from '@twurple/api';
import { DataObject } from '@twurple/common';
import type { EventSubChannelGoalType } from './common/EventSubChannelGoalType.js';
import { type EventSubChannelGoalProgressEventData } from './EventSubChannelGoalProgressEvent.external.js';
/**
* An EventSub event representing a creator goal starting in a channel.
*/
export declare class EventSubChannelGoalProgressEvent extends DataObject<EventSubChannelGoalProgressEventData> {
/**
* The ID of the goal.
*/
get id(): string;
/**
* 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 type of the goal.
*/
get type(): EventSubChannelGoalType;
/**
* The description of the goal.
*/
get description(): string;
/**
* The current value of the goal.
*/
get currentAmount(): number;
/**
* The target value of the goal.
*/
get targetAmount(): number;
/**
* The time when the goal started.
*/
get startDate(): Date;
}
//# sourceMappingURL=EventSubChannelGoalProgressEvent.d.ts.map