Type fixes + use template safe values for renderTemplate() everywhere
This commit is contained in:
parent
e16eb8c8d1
commit
d109a58cb7
21 changed files with 190 additions and 98 deletions
|
@ -1,7 +1,7 @@
|
|||
import * as t from "io-ts";
|
||||
import { GuildPluginData } from "knub";
|
||||
import { CaseTypes } from "../../../data/CaseTypes";
|
||||
import { renderTemplate } from "../../../templateFormatter";
|
||||
import { renderTemplate, TemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
import { CasesPlugin } from "../../Cases/CasesPlugin";
|
||||
import { ActionError } from "../ActionError";
|
||||
import { CustomEventsPluginType, TCustomEvent } from "../types";
|
||||
|
@ -18,7 +18,7 @@ export type TCreateCaseAction = t.TypeOf<typeof CreateCaseAction>;
|
|||
export async function createCaseAction(
|
||||
pluginData: GuildPluginData<CustomEventsPluginType>,
|
||||
action: TCreateCaseAction,
|
||||
values: any,
|
||||
values: TemplateSafeValueContainer,
|
||||
event: TCustomEvent,
|
||||
eventData: any,
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue