3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-09 03:57:19 +00:00

Update CaseMsgCmd.ts

This commit is contained in:
seeyebe 2025-07-08 06:59:28 +03:00 committed by GitHub
parent 3ef89246ba
commit 863ef3d773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,10 +2,6 @@ import { commandTypeHelpers as ct } from "../../../../commandTypes.js";
import { modActionsMsgCmd } from "../../types.js";
import { actualCaseCmd } from "./actualCaseCmd.js";
const opts = {
show: ct.switchOption({ def: false, shortcut: "sh" }),
};
export const CaseMsgCmd = modActionsMsgCmd({
trigger: "case",
permission: "can_view",
@ -14,12 +10,10 @@ export const CaseMsgCmd = modActionsMsgCmd({
signature: [
{
caseNumber: ct.number(),
...opts,
},
],
async run({ pluginData, message: msg, args }) {
actualCaseCmd(pluginData, msg, msg.author.id, args.caseNumber, args.show);
actualCaseCmd(pluginData, msg, msg.author.id, args.caseNumber);
},
});