1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-27 16:35:37 -05:00

messed it up for some reason. but still

This commit is contained in:
toast-ts 2022-11-25 20:39:22 +11:00 committed by GitHub
parent ecbefa08ca
commit 5b9d774d9b

View File

@ -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))) {