logs: allow per-log-channel log formats

This commit is contained in:
Dragory 2020-07-30 02:28:11 +03:00
parent 8b22ce267d
commit 28de8a592b
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
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") {