pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame] | 1 | const {addLog} = require('../scripts/addLogs'); |
2 | |||||
3 | module.exports = { | ||||
4 | name:'messageReactionRemoveAll', | ||||
5 | once:false, | ||||
6 | async execute(message, reactions) { | ||||
7 | let data = { | ||||
8 | messageID: message.id, | ||||
9 | reactions: reactions.map(r => { | ||||
10 | return { | ||||
11 | name: r.emoji.name, | ||||
12 | id: r.emoji.id | ||||
13 | } | ||||
14 | }), | ||||
15 | removedAt: Date.now() | ||||
16 | } | ||||
17 | |||||
18 | addLog(message.guild.id, data); | ||||
19 | } | ||||
20 | } |