blob: 8a86b6d1093e3f5e3fab8da7b3db909325286ad8 [file] [log] [blame]
import log from '../utils/log.js'
import * as JsonDiff from 'json-diff'
export const name = ''
export const once = false
export async function execute(channel) {
let pins = (await channel.messages.fetchPinned()).map(m => m.id);
let oldPins = require(`../data/guilds/${channel.guild.id}/pins.json`);
let data = JsonDiff.diff(oldPins, pins, {full: true});
addLog(channel.guild.id, data)
}