Do it better

This commit is contained in:
Daniel Odendahl Jr
2017-05-23 01:21:42 +00:00
parent aac2f2eee6
commit 9be19e3bb8
+2 -1
View File
@@ -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()