mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 01:25:02 +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,
|
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>;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue