remove deprecated .deleted() method

master
Kit Kasune 3 years ago
parent df2731bf6d
commit 22db6a8658
  1. 4
      events/messageUpdate.js

@ -9,11 +9,11 @@ module.exports = async (client, oldM, newM) => {
if (!channelTypes.includes(oldM.channel.type)) {return;}; if (!channelTypes.includes(oldM.channel.type)) {return;};
if (!oldM.author || oldM.author.bot) {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] = {};}; //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}; //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; 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")) { if (ts) {if (oldM.guild.channels.cache.has(ts) && oldM.guild.channels.cache.get(ts).permissionsFor(client.user.id).has("SEND_oldMS")) {

Loading…
Cancel
Save