blob: c59a16f82381bd85c1f0704bf17694fb93594891 [file] [log] [blame]
pineafan32767212022-03-14 21:27:39 +00001const {addLog} = require('../scripts/addLogs');
2
3module.exports = {
4 name:'messageReactionAdd',
5 once:false,
6 async execute(messageReaction, user) {
7 let data = {
8 messageReaction: {
9 messageID: messageReaction.message.id,
10 reactionEmoji: {
11 name: messageReaction.emoji.name,
12 id: messageReaction.emoji.id
13 },
14 addedAt: Date.now()
15 },
16 user: {
17 id: user.id,
18 username: user.username
19 }
20 }
21
22 addLog(messageReaction.message.guild.id, data);
23 }
24}