mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
Add max option back for safety
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user