From ecbefa08ca0c0b6203da5c78bb2844e1728a5621 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Fri, 25 Nov 2022 20:37:23 +1100 Subject: [PATCH] why is this not here? --- src/events/messageDelete.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events/messageDelete.ts b/src/events/messageDelete.ts index 3a326c5..d376d29 100644 --- a/src/events/messageDelete.ts +++ b/src/events/messageDelete.ts @@ -7,6 +7,7 @@ export default { const channel = client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel; if (msg.partial) return; if (msg.author.bot) return; + if (msg.channelId == client.config.mainServer.id) return; const embed = new client.embed().setColor(client.config.embedColorRed).setTimestamp().setAuthor({name: `Author: ${msg.author.tag} (${msg.author.id})`, iconURL: `${msg.author.displayAvatarURL()}`}).setTitle('Message deleted').setDescription(`<@${msg.author.id}>\nContent:\n\`\`\`\n${msg?.content}\n\`\`\`\nChannel: <#${msg.channelId}>`) let image; if (msg.attachments?.first()?.width && ['png', 'jpeg', 'jpg', 'gif', 'webp'].some(x=>((msg.attachments.first() as Discord.Attachment).name as string).endsWith(x))) {