mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Add more type safety to renderTagBody()'s args parameter
This commit is contained in:
parent
dcdaaf9de8
commit
37705d24a4
1 changed files with 2 additions and 2 deletions
|
@ -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<TagsPluginType>,
|
||||
body: TTag,
|
||||
args: unknown[] = [],
|
||||
args: TemplateSafeValue[] = [],
|
||||
extraData = {},
|
||||
subTagPermissionMatchParams?: ExtendedMatchParams,
|
||||
): Promise<StrictMessageContent> {
|
||||
|
|
Loading…
Add table
Reference in a new issue