3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00

fix derp typings

This commit is contained in:
metal 2021-08-27 15:37:32 +00:00 committed by GitHub
parent 673bd6ea76
commit 1d688f36b8
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ import {
TemplateSafeUnknownUser, TemplateSafeUnknownUser,
TemplateSafeUser, TemplateSafeUser,
} from "../../utils/templateSafeObjects"; } 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 const tLogFormats = t.record(t.string, t.union([t.string, tMessageContent]));
export type TLogFormats = t.TypeOf<typeof tLogFormats>; export type TLogFormats = t.TypeOf<typeof tLogFormats>;

View file

@ -116,7 +116,7 @@ export async function getLogMessage<TLogType extends keyof ILogTypeData>(
const renderLogString = str => renderTemplate(str, values); const renderLogString = str => renderTemplate(str, values);
let formatted: ParsedMessageType; let formatted;
try { try {
formatted = formatted =
typeof format === "string" ? await renderLogString(format) : await renderRecursively(format, renderLogString); typeof format === "string" ? await renderLogString(format) : await renderRecursively(format, renderLogString);