pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame] | 1 | const {addLog} = require('../scripts/addLogs'); |
| 2 | |
| 3 | module.exports = { |
| 4 | name:'messageReactionRemove', |
| 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 | removedAt: 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 | } |
| 25 | } |