mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
logs: allow per-log-channel log formats
This commit is contained in:
parent
8b22ce267d
commit
28de8a592b
3 changed files with 20 additions and 13 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue