3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

logs: allow per-log-channel log formats

This commit is contained in:
Dragory 2020-07-30 02:28:11 +03:00
parent 2fe3cd8dcd
commit 067da253c0
3 changed files with 20 additions and 13 deletions

View file

@ -57,7 +57,7 @@ export async function log(pluginData: PluginData<LogsPluginType>, type: LogType,
}
}
const message = await getLogMessage(pluginData, type, data);
const message = await getLogMessage(pluginData, type, data, opts.format);
if (message) {
// For non-string log messages (i.e. embeds) batching or chunking is not possible, so send them immediately
if (typeof message !== "string") {