We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 290938b commit 6caeaebCopy full SHA for 6caeaeb
src/client/actions/MessageReactionAdd.js
@@ -28,6 +28,8 @@ class MessageReactionAdd extends Action {
28
29
// Verify reaction
30
if (message.partial && !this.client.options.partials.includes(PartialTypes.REACTION)) return false;
31
+ const existing = message.reactions.cache.get(data.emoji.id || data.emoji.name);
32
+ if (existing && existing.users.cache.has(user.id)) return { message, reaction: existing, user };
33
const reaction = message.reactions.add({
34
emoji: data.emoji,
35
count: message.partial ? null : 0,
0 commit comments