Skip to content

Commit

Permalink
🐛 rename giveawayDuration getter go duration
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico105 committed Jun 11, 2021
1 parent 37cc5ff commit 67fcc9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Giveaway.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class Giveaway extends EventEmitter {
* @type {Number}
* @readonly
*/
get giveawayDuration() {
get duration() {
return this.endAt - this.startAt;
}

Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ declare module 'discord-giveaways' {

// getters calculated using other values
readonly remainingTime: number;
readonly giveawayDuration: number;
readonly duration: number;
readonly messageURL: string;
readonly remainingTimeText: string;
readonly channel: TextChannel;
Expand Down

0 comments on commit 67fcc9e

Please sign in to comment.