mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +00:00
oops
This commit is contained in:
parent
d7b909a3e4
commit
04bcf8c4bf
1 changed files with 0 additions and 7 deletions
|
@ -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, {
|
const message = await getLogMessage(pluginData, type, data, {
|
||||||
format: opts.format,
|
format: opts.format,
|
||||||
include_embed_timestamp: opts.include_embed_timestamp,
|
include_embed_timestamp: opts.include_embed_timestamp,
|
||||||
|
@ -86,12 +85,6 @@ export async function log<TLogType extends keyof ILogTypeData>(
|
||||||
});
|
});
|
||||||
|
|
||||||
if (message) {
|
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
|
// Default to batched unless explicitly disabled
|
||||||
const batched = opts.batched ?? true;
|
const batched = opts.batched ?? true;
|
||||||
const batchTime = opts.batch_time ?? 1000;
|
const batchTime = opts.batch_time ?? 1000;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue