diff --git a/backend/src/plugins/Logs/types.ts b/backend/src/plugins/Logs/types.ts index 02a25fd0..c4bd8cdf 100644 --- a/backend/src/plugins/Logs/types.ts +++ b/backend/src/plugins/Logs/types.ts @@ -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; diff --git a/backend/src/plugins/Logs/util/getLogMessage.ts b/backend/src/plugins/Logs/util/getLogMessage.ts index 34237f95..5fbe2b61 100644 --- a/backend/src/plugins/Logs/util/getLogMessage.ts +++ b/backend/src/plugins/Logs/util/getLogMessage.ts @@ -116,7 +116,7 @@ export async function getLogMessage( const renderLogString = str => renderTemplate(str, values); - let formatted: ParsedMessageType; + let formatted; try { formatted = typeof format === "string" ? await renderLogString(format) : await renderRecursively(format, renderLogString);