mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
Remove User's Own Reactions
This commit is contained in:
@@ -105,6 +105,10 @@ client.on('messageReactionAdd', (reaction, user) => {
|
||||
const channel = msg.guild.channels.get(msg.guild.settings.get('starboard'));
|
||||
if (!channel) return;
|
||||
if (!channel.permissionsFor(client.user).has(['SEND_MESSAGES', 'EMBED_LINKS'])) return;
|
||||
if (user.id === msg.author.id) {
|
||||
reaction.remove(user);
|
||||
return msg.reply('You cannot star your own messages, idiot.');
|
||||
}
|
||||
const embed = new RichEmbed()
|
||||
.setColor(0xFFFF00)
|
||||
.setAuthor(msg.author.tag, msg.author.displayAvatarURL)
|
||||
|
||||
Reference in New Issue
Block a user