mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
Webpack build for branch master: 794c0e131d
This commit is contained in:
parent
c0bf72ce19
commit
79fed20ddf
1 changed files with 23 additions and 12 deletions
|
|
@ -12487,8 +12487,9 @@ class MessageCollector extends Collector {
|
|||
this.channel = channel;
|
||||
|
||||
/**
|
||||
* @type {number} received Total number of messages that were received in the
|
||||
* Total number of messages that were received in the
|
||||
* channel during message collection.
|
||||
* @type {number}
|
||||
*/
|
||||
this.received = 0;
|
||||
|
||||
|
|
@ -16111,39 +16112,46 @@ class Collector extends EventEmitter {
|
|||
super();
|
||||
|
||||
/**
|
||||
* @type {Client} client The client.
|
||||
* The client.
|
||||
* @type {Client}
|
||||
*/
|
||||
this.client = client;
|
||||
|
||||
/**
|
||||
* @type {CollectorFilter} filter The filter applied to this collector.
|
||||
* The filter applied to this collector.
|
||||
* @type {CollectorFilter}
|
||||
*/
|
||||
this.filter = filter;
|
||||
|
||||
/**
|
||||
* @type {CollectorOptions} options The options of this collector.
|
||||
* The options of this collector.
|
||||
* @type {CollectorOptions}
|
||||
*/
|
||||
this.options = options;
|
||||
|
||||
/**
|
||||
* @type {Collection} collected The items collected by this collector.
|
||||
* The items collected by this collector.
|
||||
* @type {Collection}
|
||||
*/
|
||||
this.collected = new Collection();
|
||||
|
||||
/**
|
||||
* @type {boolean} ended Whether this collector has finished collecting.
|
||||
* Whether this collector has finished collecting.
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.ended = false;
|
||||
|
||||
/**
|
||||
* @type {?number} _timeout Timeout ID for cleanup.
|
||||
* Timeout ID for cleanup.
|
||||
* @type {?number}
|
||||
* @private
|
||||
*/
|
||||
this._timeout = null;
|
||||
|
||||
/**
|
||||
* @type {Function} listener Call this to handle an event as a collectable element.
|
||||
* Call this to handle an event as a collectable element.
|
||||
* Accepts any event data as parameters.
|
||||
* @type {Function}
|
||||
* @private
|
||||
*/
|
||||
this.listener = this._handle.bind(this);
|
||||
|
|
@ -16165,7 +16173,7 @@ class Collector extends EventEmitter {
|
|||
* Emitted whenever an element is collected.
|
||||
* @event Collector#collect
|
||||
* @param {*} element The element that got collected.
|
||||
* @param {Collector} collector The message collector.
|
||||
* @param {Collector} collector The collector.
|
||||
*/
|
||||
this.emit('collect', collect.value, this);
|
||||
|
||||
|
|
@ -23464,17 +23472,20 @@ class ReactionCollector extends Collector {
|
|||
super(message.client, filter, options);
|
||||
|
||||
/**
|
||||
* @type {Message} message The message.
|
||||
* The message.
|
||||
* @type {Message}
|
||||
*/
|
||||
this.message = message;
|
||||
|
||||
/**
|
||||
* @type {Collection} users Users which have reacted.
|
||||
* Users which have reacted.
|
||||
* @type {Collection}
|
||||
*/
|
||||
this.users = new Collection();
|
||||
|
||||
/**
|
||||
* @type {number} total Total number of reactions collected.
|
||||
* Total number of reactions collected.
|
||||
* @type {number}
|
||||
*/
|
||||
this.total = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue