blob: 685ad3704a3d2ced481af729fa5cfe895e15e78e [file] [log] [blame]
const {addLog} = require('../scripts/addLogs');
module.exports = {
name:'messageReactionRemove',
once:false,
async execute(messageReaction, user) {
let data = {
messageReaction: {
messageID: messageReaction.message.id,
reactionEmoji: {
name: messageReaction.emoji.name,
id: messageReaction.emoji.id
},
removedAt: Date.now()
},
user: {
id: user.id,
username: user.username
}
}
addLog(messageReaction.message.guild.id, data);
}
}