From 84d123faddafe241c39cd11f4a9cc49238a6135c Mon Sep 17 00:00:00 2001 From: Supositware Date: Tue, 19 Mar 2019 21:05:47 +0100 Subject: [PATCH] removed self react --- event/listeners/messageReactionAdd.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/event/listeners/messageReactionAdd.js b/event/listeners/messageReactionAdd.js index c91b65ee..0379222f 100644 --- a/event/listeners/messageReactionAdd.js +++ b/event/listeners/messageReactionAdd.js @@ -11,7 +11,8 @@ class MessageReactionAddListener extends Listener { }); } - async exec(reaction) { + async exec(reaction, user) { + if (reaction.message.author == user) return; let messageContent = reaction.message.content; let messageAttachments = reaction.message.attachments.map(u=> u.url);