mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-09 12:07:19 +00:00
Update CaseMsgCmd.ts
This commit is contained in:
parent
3ef89246ba
commit
863ef3d773
1 changed files with 1 additions and 7 deletions
|
@ -2,10 +2,6 @@ import { commandTypeHelpers as ct } from "../../../../commandTypes.js";
|
||||||
import { modActionsMsgCmd } from "../../types.js";
|
import { modActionsMsgCmd } from "../../types.js";
|
||||||
import { actualCaseCmd } from "./actualCaseCmd.js";
|
import { actualCaseCmd } from "./actualCaseCmd.js";
|
||||||
|
|
||||||
const opts = {
|
|
||||||
show: ct.switchOption({ def: false, shortcut: "sh" }),
|
|
||||||
};
|
|
||||||
|
|
||||||
export const CaseMsgCmd = modActionsMsgCmd({
|
export const CaseMsgCmd = modActionsMsgCmd({
|
||||||
trigger: "case",
|
trigger: "case",
|
||||||
permission: "can_view",
|
permission: "can_view",
|
||||||
|
@ -14,12 +10,10 @@ export const CaseMsgCmd = modActionsMsgCmd({
|
||||||
signature: [
|
signature: [
|
||||||
{
|
{
|
||||||
caseNumber: ct.number(),
|
caseNumber: ct.number(),
|
||||||
|
|
||||||
...opts,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
async run({ pluginData, message: msg, args }) {
|
async run({ pluginData, message: msg, args }) {
|
||||||
actualCaseCmd(pluginData, msg, msg.author.id, args.caseNumber, args.show);
|
actualCaseCmd(pluginData, msg, msg.author.id, args.caseNumber);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue