3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00
This commit is contained in:
metal 2021-08-27 15:46:28 +00:00 committed by GitHub
parent d7b909a3e4
commit 04bcf8c4bf

View file

@ -78,7 +78,6 @@ export async function log<TLogType extends keyof ILogTypeData>(
}
}
}
// 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<TLogType extends keyof ILogTypeData>(
});
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;