From 04bcf8c4bf3ef2fa8aed32685bbca5dda4c452c7 Mon Sep 17 00:00:00 2001 From: metal Date: Fri, 27 Aug 2021 15:46:28 +0000 Subject: [PATCH] oops --- backend/src/plugins/Logs/util/log.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend/src/plugins/Logs/util/log.ts b/backend/src/plugins/Logs/util/log.ts index ba61ca5d..3d697b0c 100644 --- a/backend/src/plugins/Logs/util/log.ts +++ b/backend/src/plugins/Logs/util/log.ts @@ -78,7 +78,6 @@ export async function log( } } } - // its resolving to "any" without this, idk why const message = await getLogMessage(pluginData, type, data, { format: opts.format, include_embed_timestamp: opts.include_embed_timestamp, @@ -86,12 +85,6 @@ export async function log( }); if (message) { - // For non-string log messages (i.e. embeds) batching or chunking is not possible, so send them immediately - /*if (typeof message !== "string") { - await channel.send(message).catch(noop); - return; - }*/ - // Default to batched unless explicitly disabled const batched = opts.batched ?? true; const batchTime = opts.batch_time ?? 1000;