From 5b9d774d9b0298d0081d9ca7faa2404e7b638eae Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Fri, 25 Nov 2022 20:39:22 +1100 Subject: [PATCH] messed it up for some reason. but still --- src/events/messageDelete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/messageDelete.ts b/src/events/messageDelete.ts index d376d29..72b4592 100644 --- a/src/events/messageDelete.ts +++ b/src/events/messageDelete.ts @@ -7,7 +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; + if (msg.guildId == 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))) {