<:cathmmLife:772716381874946068>

This commit is contained in:
Neko Life 2021-06-28 14:00:40 +09:00
parent 6782fd30fa
commit c48e72523b

View file

@ -14,7 +14,7 @@ module.exports = async (msgold, msgnew) => {
if (msgnew.partial) msgnew = await msgnew.fetch(); if (msgnew.partial) msgnew = await msgnew.fetch();
if (msgnew.partial) return; if (msgnew.partial) return;
if (msgnew.content === msgold.content) return; if (msgnew.content === msgold.content) return;
const ignored = msgnew.guild.eventChannels.mesEd.ignore?.includes(msgnew.channel.id) ?? false; const ignored = msgnew.guild.eventChannels.mesEd?.ignore?.includes(msgnew.channel.id) || false;
let check = false; let check = false;
if (msgnew.channel.id === msgnew.guild.eventChannels?.mesEd?.channel && msgnew.author ? msgnew.author !== msgnew.client.user : false && ignored === false) check = true; if (msgnew.channel.id === msgnew.guild.eventChannels?.mesEd?.channel && msgnew.author ? msgnew.author !== msgnew.client.user : false && ignored === false) check = true;
if (msgnew.guild.eventChannels?.mesEd?.channel !== msgnew.channel.id && ignored === false || check) { if (msgnew.guild.eventChannels?.mesEd?.channel !== msgnew.channel.id && ignored === false || check) {