mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
logs: add timestamps to embeds, add setting to turn off embed timestamps, move timestamp format setting to root/channel level
This commit is contained in:
parent
b158817bff
commit
400f1f0807
4 changed files with 42 additions and 16 deletions
|
@ -62,7 +62,12 @@ export async function log(pluginData: GuildPluginData<LogsPluginType>, type: Log
|
|||
}
|
||||
}
|
||||
|
||||
const message = await getLogMessage(pluginData, type, data, opts.format);
|
||||
const message = await getLogMessage(pluginData, type, data, {
|
||||
format: opts.format,
|
||||
include_embed_timestamp: opts.include_embed_timestamp,
|
||||
timestamp_format: opts.timestamp_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