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 { GuildPluginData } from "knub";
|
||||||
import { ExtendedMatchParams } from "knub/dist/config/PluginConfigManager";
|
import { ExtendedMatchParams } from "knub/dist/config/PluginConfigManager";
|
||||||
import { renderTemplate, TemplateSafeValueContainer } from "../../../templateFormatter";
|
import { renderTemplate, TemplateSafeValue, TemplateSafeValueContainer } from "../../../templateFormatter";
|
||||||
import { renderRecursively, StrictMessageContent } from "../../../utils";
|
import { renderRecursively, StrictMessageContent } from "../../../utils";
|
||||||
import { TagsPluginType, TTag } from "../types";
|
import { TagsPluginType, TTag } from "../types";
|
||||||
import { findTagByName } from "./findTagByName";
|
import { findTagByName } from "./findTagByName";
|
||||||
|
@ -8,7 +8,7 @@ import { findTagByName } from "./findTagByName";
|
||||||
export async function renderTagBody(
|
export async function renderTagBody(
|
||||||
pluginData: GuildPluginData<TagsPluginType>,
|
pluginData: GuildPluginData<TagsPluginType>,
|
||||||
body: TTag,
|
body: TTag,
|
||||||
args: unknown[] = [],
|
args: TemplateSafeValue[] = [],
|
||||||
extraData = {},
|
extraData = {},
|
||||||
subTagPermissionMatchParams?: ExtendedMatchParams,
|
subTagPermissionMatchParams?: ExtendedMatchParams,
|
||||||
): Promise<StrictMessageContent> {
|
): Promise<StrictMessageContent> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue