3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-13 21:35:02 +00:00
zeppelin/backend/src/plugins/ModActions/commands/hidecase/HideCaseMsgCmd.ts
2024-05-12 21:34:17 +02:00

19 lines
572 B
TypeScript

import { commandTypeHelpers as ct } from "../../../../commandTypes";
import { modActionsMsgCmd } from "../../types";
import { actualHideCaseCmd } from "./actualHideCaseCmd";
export const HideCaseMsgCmd = modActionsMsgCmd({
trigger: ["hide", "hidecase", "hide_case"],
permission: "can_hidecase",
description: "Hide the specified case so it doesn't appear in !cases or !info",
signature: [
{
caseNum: ct.number({ rest: true }),
},
],
async run({ pluginData, message: msg, args }) {
actualHideCaseCmd(pluginData, msg, args.caseNum);
},
});