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:
parent
d69a9c3dc7
commit
31fcbed7b9
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue