diff --git a/backend/src/plugins/ModActions/commands/case/CaseMsgCmd.ts b/backend/src/plugins/ModActions/commands/case/CaseMsgCmd.ts index 211e529f..681a997e 100644 --- a/backend/src/plugins/ModActions/commands/case/CaseMsgCmd.ts +++ b/backend/src/plugins/ModActions/commands/case/CaseMsgCmd.ts @@ -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); }, }); diff --git a/backend/src/plugins/ModActions/commands/case/actualCaseCmd.ts b/backend/src/plugins/ModActions/commands/case/actualCaseCmd.ts index 15af3e49..bcb68502 100644 --- a/backend/src/plugins/ModActions/commands/case/actualCaseCmd.ts +++ b/backend/src/plugins/ModActions/commands/case/actualCaseCmd.ts @@ -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);