mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +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
|
||||
*/
|
||||
postCheck() {
|
||||
if (this.collected.size >= this.options.max) return 'limit';
|
||||
else if (this.options.maxProcessed && this.received === this.options.maxProcessed) return 'processedLimit';
|
||||
if (this.options.max && this.collected.size >= this.options.max) return 'limit';
|
||||
if (this.options.maxProcessed && this.received === this.options.maxProcessed) return 'processedLimit';
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue