1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 12:21:00 -05:00
This commit is contained in:
Toast 2022-11-25 20:52:31 +11:00 committed by GitHub
parent 94cac2934a
commit af9e2d37f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ export default {
name: 'messageUpdate', name: 'messageUpdate',
execute: async(client:TClient, oldMsg:Discord.Message, newMsg:Discord.Message)=>{ execute: async(client:TClient, oldMsg:Discord.Message, newMsg:Discord.Message)=>{
if (!client.config.botSwitches.logs) return; if (!client.config.botSwitches.logs) return;
if (oldMsg.guild?.id != client.config.mainServer.id) return;
if (oldMsg.author == null) return; if (oldMsg.author == null) return;
if (oldMsg?.author.bot) return; if (oldMsg?.author.bot) return;
if (oldMsg.partial) return; if (oldMsg.partial) return;