mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 01:31:29 +00:00
fix: emit ReactionCollector#remove when reaction is removed by collected user (#2803)
This commit is contained in:
parent
314161ab70
commit
038b142db2
1 changed files with 2 additions and 1 deletions
|
|
@ -105,7 +105,8 @@ class ReactionCollector extends Collector {
|
||||||
* @param {MessageReaction} reaction The reaction that was removed
|
* @param {MessageReaction} reaction The reaction that was removed
|
||||||
* @param {User} user The user that removed the reaction
|
* @param {User} user The user that removed the reaction
|
||||||
*/
|
*/
|
||||||
if (this.collected.has(ReactionCollector.key(reaction))) {
|
if (this.collected.has(ReactionCollector.key(reaction)) &&
|
||||||
|
this.users.has(user.id)) {
|
||||||
this.emit('remove', reaction, user);
|
this.emit('remove', reaction, user);
|
||||||
}
|
}
|
||||||
return reaction.count ? null : ReactionCollector.key(reaction);
|
return reaction.count ? null : ReactionCollector.key(reaction);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue