mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 16:55:03 +00:00
fix derp typings
This commit is contained in:
parent
673bd6ea76
commit
1d688f36b8
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ import {
|
|||
TemplateSafeUnknownUser,
|
||||
TemplateSafeUser,
|
||||
} from "../../utils/templateSafeObjects";
|
||||
import { MessageOptions } from "child_process";
|
||||
import { MessageOptions } from "discord.js";
|
||||
|
||||
export const tLogFormats = t.record(t.string, t.union([t.string, tMessageContent]));
|
||||
export type TLogFormats = t.TypeOf<typeof tLogFormats>;
|
||||
|
|
|
@ -116,7 +116,7 @@ export async function getLogMessage<TLogType extends keyof ILogTypeData>(
|
|||
|
||||
const renderLogString = str => renderTemplate(str, values);
|
||||
|
||||
let formatted: ParsedMessageType;
|
||||
let formatted;
|
||||
try {
|
||||
formatted =
|
||||
typeof format === "string" ? await renderLogString(format) : await renderRecursively(format, renderLogString);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue