mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 19:50:55 +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
|
* @typedef {CollectorOptions} MessageCollectorOptions
|
||||||
* @property {number} max The maximum amount of messages to process
|
* @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
|
* @private
|
||||||
*/
|
*/
|
||||||
postCheck() {
|
postCheck() {
|
||||||
// Consider changing the end reasons for v12
|
if (this.collected.size >= this.options.max) return 'limit';
|
||||||
if (this.options.maxMatches && this.collected.size >= this.options.max) return 'matchesLimit';
|
else if (this.options.maxProcessed && this.received === this.options.maxProcessed) return 'processedLimit';
|
||||||
if (this.options.max && this.received >= this.options.maxProcessed) return 'limit';
|
|
||||||
return null;
|
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