mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 07:02:00 +00:00
Webpack build for branch master: 09315ae9db
This commit is contained in:
parent
b390ec90ed
commit
d411ebfc18
2 changed files with 12 additions and 2 deletions
|
|
@ -10857,7 +10857,17 @@ class ReactionCollector extends Collector {
|
|||
* @returns {?Snowflake|string}
|
||||
*/
|
||||
dispose(reaction) {
|
||||
return reaction.message.id === this.message.id && !reaction.count ? ReactionCollector.key(reaction) : null;
|
||||
if (reaction.message.id !== this.message.id) return null;
|
||||
|
||||
/**
|
||||
* Emitted whenever a reaction is removed from a message. Will emit on all reaction removals,
|
||||
* as opposed to {@link Collector#dispose} which will only be emitted when the entire reaction
|
||||
* is removed.
|
||||
* @event ReactionCollector#remove
|
||||
* @param {MessageReaction} reaction The reaction that was removed
|
||||
*/
|
||||
if (this.collected.has(reaction)) this.emit('remove', reaction);
|
||||
return reaction.count ? null : ReactionCollector.key(reaction);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
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