This commit is contained in:
Neko-Life 2021-08-09 19:06:29 +07:00
parent a601eaa344
commit 68835c4c31

View file

@ -94,7 +94,7 @@ module.exports = async (memberold, membernew) => {
console.log; // BREAKPOINT
} else emb.setDescription("Unknown reason" + (emb.description ? "\n\n" + emb.description : ""));
};
if (emb.length < 2) return;
if (emb.fields.length < 2) return;
if (audit.executor && audit.executor?.id !== membernew.user.id) {
emb.addField("Moderator", `<@${audit.executor.id}>\n(${audit.executor.id})`, true);
};