Skip to content

Commit

Permalink
remove EventSubChannelPredictionEndEvent#lockDate (defunct) and add e…
Browse files Browse the repository at this point in the history
…ndDate instead

fixes #304
  • Loading branch information
d-fischer committed Oct 29, 2021
1 parent 7f6f89d commit 0a961be
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -18,7 +18,7 @@ export interface EventSubChannelPredictionEndEventData {
outcomes: EventSubChannelPredictionOutcomeData[];
status: EventSubChannelPredictionEndStatus;
started_at: string;
locked_at: string;
ended_at: string;
}

/**
Expand Down Expand Up @@ -91,10 +91,10 @@ export class EventSubChannelPredictionEndEvent extends DataObject<EventSubChanne
}

/**
* The time when the prediction was locked.
* The time when the prediction ended.
*/
get lockDate(): Date {
return new Date(this[rawDataSymbol].locked_at);
get endDate(): Date {
return new Date(this[rawDataSymbol].ended_at);
}

/**
Expand Down

0 comments on commit 0a961be

Please sign in to comment.