From 67fcc9e0a075ec46d538dd05fac943133c3151ec Mon Sep 17 00:00:00 2001 From: Nico105 <63612668+Nico105@users.noreply.github.com> Date: Fri, 11 Jun 2021 19:59:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20rename=20giveawayDuration=20gett?= =?UTF-8?q?er=20go=20duration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Giveaway.js | 2 +- typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Giveaway.js b/src/Giveaway.js index 7dfdd662..f6d36477 100644 --- a/src/Giveaway.js +++ b/src/Giveaway.js @@ -127,7 +127,7 @@ class Giveaway extends EventEmitter { * @type {Number} * @readonly */ - get giveawayDuration() { + get duration() { return this.endAt - this.startAt; } diff --git a/typings/index.d.ts b/typings/index.d.ts index 8cad9171..cd3fca92 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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;