12 lines
354 B
TypeScript
12 lines
354 B
TypeScript
import * as t from "io-ts";
|
|
import { automodAction } from "../helpers";
|
|
import { setAntiraidLevel } from "../functions/setAntiraidLevel";
|
|
|
|
export const SetAntiraidLevelAction = automodAction({
|
|
configType: t.string,
|
|
defaultConfig: null,
|
|
|
|
async apply({ pluginData, contexts, actionConfig }) {
|
|
setAntiraidLevel(pluginData, actionConfig);
|
|
},
|
|
});
|