diff --git a/src/index.ts b/src/index.ts index 8b13228..55c5142 100644 --- a/src/index.ts +++ b/src/index.ts @@ -76,6 +76,10 @@ export let rawSwitches = { MESSAGE_UPDATE: false, MESSAGE_DELETE: false }; +if (!client.config.botSwitches.logs) { + rawSwitches.MESSAGE_DELETE = true; + rawSwitches.MESSAGE_UPDATE = true; +}; client.on('raw', async (packet:RawGatewayPacket)=>{ if (rawSwitches[packet.t]) return; if (packet.t !== 'MESSAGE_UPDATE') return;