mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
Add max option back for safety
This commit is contained in:
parent
8beefe66d5
commit
4955b1ce5f
1 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,8 @@ class MessageCollector extends Collector {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
postCheck() {
|
postCheck() {
|
||||||
if (this.collected.size >= this.options.max) return 'limit';
|
if (this.options.max && this.collected.size >= this.options.max) return 'limit';
|
||||||
else if (this.options.maxProcessed && this.received === this.options.maxProcessed) return 'processedLimit';
|
if (this.options.maxProcessed && this.received === this.options.maxProcessed) return 'processedLimit';
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue