mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
refactor(*): make typedefs for all options params (#5785)
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com> Co-authored-by: Antonio Román <kyradiscord@gmail.com> Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
This commit is contained in:
@@ -194,10 +194,16 @@ class Collector extends EventEmitter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the collectors timeout and idle timer.
|
||||
* @param {Object} [options] Options
|
||||
* @param {number} [options.time] How long to run the collector for in milliseconds
|
||||
* @param {number} [options.idle] How long to stop the collector after inactivity in milliseconds
|
||||
* Options used to reset timeout and idle timer of a {@link Collector}.
|
||||
* @typedef {Object} CollectorResetTimerOptions
|
||||
* @property {number} [time] How long to run the collector for (in milliseconds)
|
||||
* @property {number} [idle] How long to wait to stop the collector after inactivity (in milliseconds)
|
||||
*/
|
||||
|
||||
/**
|
||||
* Resets the collector's timeout and idle timer.
|
||||
* @param {CollectorResetTimerOptions} [options] Options for reseting
|
||||
|
||||
*/
|
||||
resetTimer({ time, idle } = {}) {
|
||||
if (this._timeout) {
|
||||
|
||||
Reference in New Issue
Block a user