diff --git a/backend/src/plugins/Automod/actions/availableActions.ts b/backend/src/plugins/Automod/actions/availableActions.ts index 757b224bd..b77f39421 100644 --- a/backend/src/plugins/Automod/actions/availableActions.ts +++ b/backend/src/plugins/Automod/actions/availableActions.ts @@ -8,10 +8,10 @@ import { BanAction } from "./ban"; import { ChangeNicknameAction } from "./changeNickname"; import { ChangePermsAction } from "./changePerms"; import { CleanAction } from "./clean"; -import { DisableInvitesAction } from "./disableInvites"; import { KickAction } from "./kick"; import { LogAction } from "./log"; import { MuteAction } from "./mute"; +import { PauseInvitesAction } from "./pauseInvites"; import { RemoveRolesAction } from "./removeRoles"; import { ReplyAction } from "./reply"; import { SetAntiraidLevelAction } from "./setAntiraidLevel"; @@ -39,7 +39,7 @@ export const availableActions: Record> = { start_thread: StartThreadAction, archive_thread: ArchiveThreadAction, change_perms: ChangePermsAction, - disable_invites: DisableInvitesAction, + pause_invites: PauseInvitesAction, }; export const AvailableActions = t.type({ @@ -61,5 +61,5 @@ export const AvailableActions = t.type({ start_thread: StartThreadAction.configType, archive_thread: ArchiveThreadAction.configType, change_perms: ChangePermsAction.configType, - disable_invites: DisableInvitesAction.configType, + pause_invites: PauseInvitesAction.configType, }); diff --git a/backend/src/plugins/Automod/actions/disableInvites.ts b/backend/src/plugins/Automod/actions/pauseInvites.ts similarity index 81% rename from backend/src/plugins/Automod/actions/disableInvites.ts rename to backend/src/plugins/Automod/actions/pauseInvites.ts index af82a81cd..87d927ced 100644 --- a/backend/src/plugins/Automod/actions/disableInvites.ts +++ b/backend/src/plugins/Automod/actions/pauseInvites.ts @@ -1,7 +1,7 @@ import * as t from "io-ts"; import { automodAction } from "../helpers"; -export const DisableInvitesAction = automodAction({ +export const PauseInvitesAction = automodAction({ configType: t.boolean, defaultConfig: true,