Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions backend/src/plugins/ModActions/commands/case/CaseMsgCmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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);
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function actualCaseCmd(
context: Message | ChatInputCommandInteraction,
authorId: string,
caseNumber: number,
show: boolean | null,
show?: boolean | null,
) {
const theCase = await pluginData.state.cases.findByCaseNumber(caseNumber);

Expand Down
Loading