3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-14 13:55:03 +00:00

Used guildPluginSlashCommand instead of raw blueprints

This commit is contained in:
Lily Bergonzat 2024-03-05 05:05:03 +01:00
parent 7eff7bcaa6
commit cbec6101e0
27 changed files with 168 additions and 121 deletions

View file

@ -1,11 +1,12 @@
import { slashOptions } from "knub";
import { actualCaseCmd } from "../../functions/actualCommands/actualCaseCmd";
import { modActionsSlashCmd } from "../../types";
const opts = [
slashOptions.boolean({ name: "show", description: "To make the result visible to everyone", required: false }),
];
export const CaseSlashCmd = {
export const CaseSlashCmd = modActionsSlashCmd({
name: "case",
configPermission: "can_view",
description: "Show information about a specific case",
@ -21,4 +22,4 @@ export const CaseSlashCmd = {
await interaction.deferReply({ ephemeral: options.show !== true });
actualCaseCmd(pluginData, interaction, interaction.user.id, options["case-number"], options.show);
},
};
});