From 37705d24a4a12868a2afb64ab6026e290329c6e3 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 20 Aug 2021 22:21:42 +0300 Subject: [PATCH] Add more type safety to renderTagBody()'s args parameter --- backend/src/plugins/Tags/util/renderTagBody.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/plugins/Tags/util/renderTagBody.ts b/backend/src/plugins/Tags/util/renderTagBody.ts index cd8afcfe..1d039b44 100644 --- a/backend/src/plugins/Tags/util/renderTagBody.ts +++ b/backend/src/plugins/Tags/util/renderTagBody.ts @@ -1,6 +1,6 @@ import { GuildPluginData } from "knub"; import { ExtendedMatchParams } from "knub/dist/config/PluginConfigManager"; -import { renderTemplate, TemplateSafeValueContainer } from "../../../templateFormatter"; +import { renderTemplate, TemplateSafeValue, TemplateSafeValueContainer } from "../../../templateFormatter"; import { renderRecursively, StrictMessageContent } from "../../../utils"; import { TagsPluginType, TTag } from "../types"; import { findTagByName } from "./findTagByName"; @@ -8,7 +8,7 @@ import { findTagByName } from "./findTagByName"; export async function renderTagBody( pluginData: GuildPluginData, body: TTag, - args: unknown[] = [], + args: TemplateSafeValue[] = [], extraData = {}, subTagPermissionMatchParams?: ExtendedMatchParams, ): Promise {