mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 05:45:02 +00:00
feat: first batch of emojis 🎉
This commit is contained in:
parent
dfb0e2c19d
commit
a4c4b17a14
91 changed files with 3659 additions and 2032 deletions
|
@ -0,0 +1,27 @@
|
|||
import { slashOptions } from "knub";
|
||||
import { actualDeleteCaseCmd } from "../../functions/actualCommands/actualDeleteCaseCmd";
|
||||
|
||||
const opts = [slashOptions.boolean({ name: "force", description: "Whether or not to force delete", required: false })];
|
||||
|
||||
export const DeleteCaseSlashCmd = {
|
||||
name: "deletecase",
|
||||
configPermission: "can_deletecase",
|
||||
description: "Delete the specified case. This operation can *not* be reversed.",
|
||||
allowDms: false,
|
||||
|
||||
signature: [
|
||||
slashOptions.string({ name: "case-number", description: "The number of the case to delete", required: true }),
|
||||
|
||||
...opts,
|
||||
],
|
||||
|
||||
async run({ interaction, options, pluginData }) {
|
||||
actualDeleteCaseCmd(
|
||||
pluginData,
|
||||
interaction,
|
||||
interaction.member,
|
||||
options["case-number"].split(/[\s,]+/),
|
||||
!!options.force,
|
||||
);
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue