Skip to content

Commit

Permalink
Add cooldownDate to Hype Train event data
Browse files Browse the repository at this point in the history
* Update HelixHypeTrainEvent.ts

* chore: ran prettier:fix to resolve check errors
  • Loading branch information
greebowarrior committed Apr 5, 2021
1 parent 3ca581c commit 50bbb09
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ export class HelixHypeTrainEvent {
return new Date(this._data.event_data.expires_at);
}

/**
* The time when the Hype Train cooldown will end.
*/
get cooldownDate(): Date {
return new Date(this._data.event_data.cooldown_end_time);
}

/**
* The total amount of progress points of the Hype Train event.
*/
Expand Down

0 comments on commit 50bbb09

Please sign in to comment.