Skip to content

Commit

Permalink
Merge pull request #299 from serycodes/add-eventsub-cost
Browse files Browse the repository at this point in the history
Add eventSub cost to Helix
  • Loading branch information
d-fischer committed Sep 30, 2021
2 parents a508388 + e3636be commit 88cc521
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -31,6 +31,7 @@ export interface HelixEventSubSubscriptionData {
id: string;
status: HelixEventSubSubscriptionStatus;
type: string;
cost: number;
version: string;
condition: Record<string, unknown>;
created_at: string;
Expand Down Expand Up @@ -71,6 +72,13 @@ export class HelixEventSubSubscription extends DataObject<HelixEventSubSubscript
return this[rawDataSymbol].type;
}

/**
* The cost of the subscription.
*/
get cost(): number {
return this[rawDataSymbol].cost;
}

/**
* The condition of the subscription.
*/
Expand Down

0 comments on commit 88cc521

Please sign in to comment.