diff --git a/src/index.ts b/src/index.ts index 4774a08..7809bec 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. - Logger.console('log', 'RawEvent:Edit', `Message was edited in #${(channel as Discord.TextChannel).name}`); + if (!rawSwitches.MESSAGE_UPDATE) return Logger.console('log', 'RawEvent:Edit', `Message was edited in #${(channel as Discord.TextChannel).name}`); }); client.on('raw', async (packet:RawGatewayPacket)=>{