mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
refactor(Collector): make endReason a getter (#5271)
This commit is contained in:
@@ -146,7 +146,7 @@ class ReactionCollector extends Collector {
|
||||
this.checkEnd();
|
||||
}
|
||||
|
||||
endReason() {
|
||||
get endReason() {
|
||||
if (this.options.max && this.total >= this.options.max) return 'limit';
|
||||
if (this.options.maxEmojis && this.collected.size >= this.options.maxEmojis) return 'emojiLimit';
|
||||
if (this.options.maxUsers && this.users.size >= this.options.maxUsers) return 'userLimit';
|
||||
|
||||
Reference in New Issue
Block a user