From b541379feaa1f011a2b2b157aafe0f7dabf58105 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sun, 25 Feb 2024 23:18:33 +1100 Subject: [PATCH] Fix flood in console --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7809bec..64cf068 100644 --- a/src/index.ts +++ b/src/index.ts @@ -105,7 +105,7 @@ client.on('raw', async (packet:RawGatewayPacket)=>{ const channel = client.channels.cache.get(packet.d.channel_id) as Discord.TextBasedChannel; // Switched to console.log to prevent useless embed creation that has same content as the original message. - if (!rawSwitches.MESSAGE_UPDATE) return Logger.console('log', 'RawEvent:Edit', `Message was edited in #${(channel as Discord.TextChannel).name}`); + if (!rawSwitches.MESSAGE_UPDATE && !packet.d.author.bot) return Logger.console('log', 'RawEvent:Edit', `Message was edited in #${(channel as Discord.TextChannel).name}`); }); client.on('raw', async (packet:RawGatewayPacket)=>{