3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-06 10:37:19 +00:00

refactor: rename disable_invites to pause_invites

This commit is contained in:
Ben Richeson 2023-08-30 13:37:41 -04:00
parent d69a9c3dc7
commit 31fcbed7b9
No known key found for this signature in database
GPG key ID: 5CE9197BA65BF9B8
2 changed files with 4 additions and 4 deletions

View file

@ -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<string, AutomodActionBlueprint<any>> = {
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,
});

View file

@ -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,