diff --git a/src/structures/interfaces/Collector.js b/src/structures/interfaces/Collector.js index 017c3797d..73bbcde59 100644 --- a/src/structures/interfaces/Collector.js +++ b/src/structures/interfaces/Collector.js @@ -5,6 +5,7 @@ const EventEmitter = require('events'); * Filter to be applied to the collector. * @typedef {Function} CollectorFilter * @param {...*} args Any arguments received by the listener + * @param {Collection} collection The items collected by this collector * @returns {boolean} To collect or not collect */ @@ -75,7 +76,7 @@ class Collector extends EventEmitter { */ handleCollect(...args) { const collect = this.collect(...args); - if (!collect || !this.filter(...args)) return; + if (!collect || !this.filter(...args, this.collected)) return; this.collected.set(collect.key, collect.value);