mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +00:00
Webpack build for branch master: 8beefe66d5
This commit is contained in:
parent
7bb05814bd
commit
4283d8720b
2 changed files with 4 additions and 5 deletions
|
|
@ -12703,7 +12703,7 @@ const Collector = __webpack_require__(31);
|
|||
/**
|
||||
* @typedef {CollectorOptions} MessageCollectorOptions
|
||||
* @property {number} max The maximum amount of messages to process
|
||||
* @property {number} maxMatches The maximum amount of messages to collect
|
||||
* @property {number} maxProcessed The maximum amount of messages to collect
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
@ -12756,9 +12756,8 @@ class MessageCollector extends Collector {
|
|||
* @private
|
||||
*/
|
||||
postCheck() {
|
||||
// Consider changing the end reasons for v12
|
||||
if (this.options.maxMatches && this.collected.size >= this.options.max) return 'matchesLimit';
|
||||
if (this.options.max && this.received >= this.options.maxProcessed) return 'limit';
|
||||
if (this.collected.size >= this.options.max) return 'limit';
|
||||
else if (this.options.maxProcessed && this.received === this.options.maxProcessed) return 'processedLimit';
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue