Test for Starboard

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 15:00:01 +00:00
parent 94eb5f8df3
commit 1346d52a50
+3 -3
View File
@@ -61,17 +61,17 @@ client.on('messageReactionAdd', (reaction, user) => {
if (reaction.count > 1) return;
let starboard = reaction.message.guild.channels.find('name', 'starboard');
if (!starboard) return;
if (reaction.message.author.id === user.id) {
/*if (reaction.message.author.id === user.id) {
reaction.remove(user.id);
reaction.message.channel.send(`:x: Error! ${user.username}, you can't star your own messages!`);
}
else {
else {*/
const embed = new Discord.RichEmbed()
.setAuthor(user.username, user.avatarURL)
.setDescription('Message',
reaction.message.content);
starboard.sendEmbed(embed);
}
//}
});
client.on('guildMemberAdd', (member) => {