diff --git a/backend/src/plugins/Automod/actions/pauseInvites.ts b/backend/src/plugins/Automod/actions/pauseInvites.ts index 87d927ced..1bbea34fa 100644 --- a/backend/src/plugins/Automod/actions/pauseInvites.ts +++ b/backend/src/plugins/Automod/actions/pauseInvites.ts @@ -2,10 +2,13 @@ import * as t from "io-ts"; import { automodAction } from "../helpers"; export const PauseInvitesAction = automodAction({ - configType: t.boolean, - defaultConfig: true, + configType: t.type({ + paused: t.boolean, + }), + + defaultConfig: {}, async apply({ pluginData, actionConfig }) { - await pluginData.guild.disableInvites(actionConfig); + await pluginData.guild.disableInvites(actionConfig.paused); }, });