mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-28 08:55:38 -05:00
stop logging deleted msgs plz
wheres tae when i need him
This commit is contained in:
parent
5b9d774d9b
commit
318734194f
@ -5,9 +5,9 @@ export default {
|
||||
execute: async(client:TClient, msg:Discord.Message)=>{
|
||||
if (!client.config.botSwitches.logs) return;
|
||||
const channel = client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel;
|
||||
if (msg.guild?.id != client.config.mainServer.id) return;
|
||||
if (msg.partial) return;
|
||||
if (msg.author.bot) 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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user