From 22db6a865841ccf6cc0ba12c4247de5293746ce1 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Thu, 30 Dec 2021 04:09:43 -0700 Subject: [PATCH] remove deprecated .deleted() method --- events/messageUpdate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/messageUpdate.js b/events/messageUpdate.js index 851a85b..f0fcdad 100644 --- a/events/messageUpdate.js +++ b/events/messageUpdate.js @@ -9,11 +9,11 @@ module.exports = async (client, oldM, newM) => { if (!channelTypes.includes(oldM.channel.type)) {return;}; if (!oldM.author || oldM.author.bot) {return;} - if (oldM.deleted) {return;} + //if (oldM.deleted) {return;} //if (!Object.keys(snipe.edit).includes(oldM.guild.id)) {snipe.edit[oldM.guild.id] = {};}; //snipe.edit[oldM.guild.id][oldM.channel.id] = {old: oldM, cur: newM}; - if (!oldM.guild) {return;} + if (!oldM.guild || !oldM.author) {return;} let ts = client.guildconfig.logs.has(oldM.guild.id) && client.guildconfig.logs.get(oldM.guild.id).has('medit') ? client.guildconfig.logs.get(oldM.guild.id).get('medit') : null; if (ts) {if (oldM.guild.channels.cache.has(ts) && oldM.guild.channels.cache.get(ts).permissionsFor(client.user.id).has("SEND_oldMS")) {