Skip to content

Commit 8f883e5

Browse files
authored
Merge pull request #549 from seeyebe/fix/remove-prefix-case-show-flag
Remove -sh flag from prefix !case command
2 parents 13fbddd + 1a61bc0 commit 8f883e5

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

backend/src/plugins/ModActions/commands/case/CaseMsgCmd.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import { commandTypeHelpers as ct } from "../../../../commandTypes.js";
22
import { modActionsMsgCmd } from "../../types.js";
33
import { actualCaseCmd } from "./actualCaseCmd.js";
44

5-
const opts = {
6-
show: ct.switchOption({ def: false, shortcut: "sh" }),
7-
};
8-
95
export const CaseMsgCmd = modActionsMsgCmd({
106
trigger: "case",
117
permission: "can_view",
@@ -14,12 +10,10 @@ export const CaseMsgCmd = modActionsMsgCmd({
1410
signature: [
1511
{
1612
caseNumber: ct.number(),
17-
18-
...opts,
1913
},
2014
],
2115

2216
async run({ pluginData, message: msg, args }) {
23-
actualCaseCmd(pluginData, msg, msg.author.id, args.caseNumber, args.show);
17+
actualCaseCmd(pluginData, msg, msg.author.id, args.caseNumber);
2418
},
2519
});

backend/src/plugins/ModActions/commands/case/actualCaseCmd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export async function actualCaseCmd(
99
context: Message | ChatInputCommandInteraction,
1010
authorId: string,
1111
caseNumber: number,
12-
show: boolean | null,
12+
show?: boolean | null,
1313
) {
1414
const theCase = await pluginData.state.cases.findByCaseNumber(caseNumber);
1515

0 commit comments

Comments
 (0)