mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 20:55:01 +00:00
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
|
@ -10,12 +10,13 @@ import { messageAction } from "../actions/messageAction";
|
|||
import { moveToVoiceChannelAction } from "../actions/moveToVoiceChannelAction";
|
||||
import { setChannelPermissionOverridesAction } from "../actions/setChannelPermissionOverrides";
|
||||
import { CustomEventsPluginType, TCustomEvent } from "../types";
|
||||
import { TemplateSafeValueContainer } from "../../../templateFormatter";
|
||||
|
||||
export async function runEvent(
|
||||
pluginData: GuildPluginData<CustomEventsPluginType>,
|
||||
event: TCustomEvent,
|
||||
eventData: any,
|
||||
values: any,
|
||||
values: TemplateSafeValueContainer,
|
||||
) {
|
||||
try {
|
||||
for (const action of event.actions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue