From 9be19e3bb832cf56c930fe14f01252201e8474a1 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 23 May 2017 01:21:42 +0000 Subject: [PATCH] Do it better --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2f554f5e..01c0dab2 100644 --- a/index.js +++ b/index.js @@ -106,7 +106,8 @@ client.on('messageReactionAdd', (reaction, user) => { if (!channel) return; if (!channel.permissionsFor(client.user).has(['SEND_MESSAGES', 'EMBED_LINKS'])) return; if (user.id === msg.author.id) { - if (msg.channel.permissionsFor(client.user).has('MANAGE_MESSAGES')) reaction.remove(user); + if (msg.channel.permissionsFor(client.user).has('MANAGE_MESSAGES')) + reaction.remove(user); return msg.reply('You cannot star your own messages, idiot.'); } const embed = new RichEmbed()