2020-07-28 21:34:01 +03:00
|
|
|
import * as t from "io-ts";
|
|
|
|
import { automodAction } from "../helpers";
|
|
|
|
import { setAntiraidLevel } from "../functions/setAntiraidLevel";
|
|
|
|
|
|
|
|
export const SetAntiraidLevelAction = automodAction({
|
|
|
|
configType: t.string,
|
2020-07-30 01:45:14 +03:00
|
|
|
defaultConfig: null,
|
2020-07-28 21:34:01 +03:00
|
|
|
|
|
|
|
async apply({ pluginData, contexts, actionConfig }) {
|
|
|
|
setAntiraidLevel(pluginData, actionConfig);
|
|
|
|
},
|
|
|
|
});
|