mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-13 21:35:02 +00:00
19 lines
703 B
TypeScript
19 lines
703 B
TypeScript
import { slashOptions } from "knub";
|
|
import { actualHideCaseCmd } from "./actualHideCaseCmd";
|
|
import { modActionsSlashCmd } from "../../types";
|
|
|
|
export const HideCaseSlashCmd = modActionsSlashCmd({
|
|
name: "hidecase",
|
|
configPermission: "can_hidecase",
|
|
description: "Hide the specified case so it doesn't appear in !cases or !info",
|
|
allowDms: false,
|
|
|
|
signature: [
|
|
slashOptions.string({ name: "case-number", description: "The number of the case to hide", required: true }),
|
|
],
|
|
|
|
async run({ interaction, options, pluginData }) {
|
|
await interaction.deferReply({ ephemeral: true });
|
|
actualHideCaseCmd(pluginData, interaction, options["case-number"].split(/\D+/).map(Number));
|
|
},
|
|
});
|