Skip to content

Commit

Permalink
refactor: assign property in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry committed Jan 14, 2023
1 parent 321fa97 commit b0ca2c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/discord.js/src/structures/interfaces/Collector.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ class Collector extends EventEmitter {

if (options.time) this._timeout = setTimeout(() => this.stop('time'), options.time).unref();
if (options.idle) this._idletimeout = setTimeout(() => this.stop('idle'), options.idle).unref();
}

/**
* The timestamp at which this collector last collected an item
* @type {?number}
*/
lastCollectedTimestamp = null;
/**
* The timestamp at which this collector last collected an item
* @type {?number}
*/
this.lastCollectedTimestamp = null;
}

/**
* The Date at which this collector last collected an item
Expand Down

0 comments on commit b0ca2c1

Please sign in to comment.