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