blob: fab4ef569b560a41dfd41effdbfcf88f2f35178e [file] [log] [blame]
pineafan32767212022-03-14 21:27:39 +00001const {addLog} = require('../scripts/addLogs');
2const JsonDiff = require('json-diff');
3module.exports = {
4 name:'threadMembersUpdate',
5 once:false,
6 async execute(oldMembers, newMembers) {
7
8 let om = oldMembers.map(m => m.id);
9 let nm = newMembers.map(m => m.id);
10 let data = JsonDiff.diff(om, nm);
11
12 addLog(newMembers.first().guild.id, data);
13
14 }
15}