Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eventSub cost to Helix #299

Merged
merged 2 commits into from
Sep 30, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface HelixEventSubSubscriptionData {
id: string;
status: HelixEventSubSubscriptionStatus;
type: string;
cost: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cost is a number, not a string.

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(): string {
return this[rawDataSymbol].cost;
}

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