mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-13 21:35:02 +00:00
19 lines
572 B
TypeScript
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);
|
|
},
|
|
});
|