Skip to content

Commit

Permalink
refactor: rename disable_invites to pause_invites
Browse files Browse the repository at this point in the history
  • Loading branch information
Benricheson101 committed Jan 5, 2024
1 parent d69a9c3 commit 31fcbed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backend/src/plugins/Automod/actions/availableActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -39,7 +39,7 @@ export const availableActions: Record<string, AutomodActionBlueprint<any>> = {
start_thread: StartThreadAction,
archive_thread: ArchiveThreadAction,
change_perms: ChangePermsAction,
disable_invites: DisableInvitesAction,
pause_invites: PauseInvitesAction,
};

export const AvailableActions = t.type({
Expand All @@ -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,
});
Original file line number Diff line number Diff line change
@@ -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,

Expand Down

0 comments on commit 31fcbed

Please sign in to comment.