blob: 8a86b6d1093e3f5e3fab8da7b3db909325286ad8 [file] [log] [blame]
pineafan32767212022-03-14 21:27:39 +00001import log from '../utils/log.js'
2import * as JsonDiff from 'json-diff'
3
4export const name = ''
5export const once = false
6export async function execute(channel) {
7 let pins = (await channel.messages.fetchPinned()).map(m => m.id);
8 let oldPins = require(`../data/guilds/${channel.guild.id}/pins.json`);
9
10 let data = JsonDiff.diff(oldPins, pins, {full: true});
11
12 addLog(channel.guild.id, data)
13}