mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 07:02:00 +00:00
Webpack build for branch 11.1-dev: bce5b677ad
This commit is contained in:
parent
133ad6bf08
commit
35b049645c
2 changed files with 4 additions and 3 deletions
|
|
@ -11979,7 +11979,8 @@ const EventEmitter = __webpack_require__(9).EventEmitter;
|
|||
* Filter to be applied to the collector.
|
||||
* @typedef {Function} CollectorFilter
|
||||
* @param {...*} args Any arguments received by the listener
|
||||
* @returns {boolean} To collect or not collect
|
||||
* @param {Collection} collection The items collected by this collector
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
@ -12052,7 +12053,7 @@ class Collector extends EventEmitter {
|
|||
*/
|
||||
_handle(...args) {
|
||||
const collect = this.handle(...args);
|
||||
if (!collect || !this.filter(...args)) return;
|
||||
if (!collect || !this.filter(...args, this.collected)) return;
|
||||
|
||||
this.collected.set(collect.key, collect.value);
|
||||
|
||||
|
|
|
|||
2
discord.11.1-dev.min.js
vendored
2
discord.11.1-dev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue