mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-22 09:15:03 +00:00
24 lines
699 B
TypeScript
24 lines
699 B
TypeScript
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
|
import { updateCase } from "../functions/updateCase";
|
|
import { modActionsCmd } from "../types";
|
|
|
|
export const UpdateCmd = modActionsCmd({
|
|
trigger: ["update", "reason"],
|
|
permission: "can_note",
|
|
description:
|
|
"Update the specified case (or, if case number is omitted, your latest case) by adding more notes/details to it",
|
|
|
|
signature: [
|
|
{
|
|
caseNumber: ct.number(),
|
|
note: ct.string({ required: false, catchAll: true }),
|
|
},
|
|
{
|
|
note: ct.string({ required: false, catchAll: true }),
|
|
},
|
|
],
|
|
|
|
async run({ pluginData, message: msg, args }) {
|
|
await updateCase(pluginData, msg, args);
|
|
},
|
|
});
|