From 8176293089abd23a700b1a62fe6f7104a260d70a Mon Sep 17 00:00:00 2001 From: Isaac Date: Sun, 16 Oct 2022 14:16:38 +0100 Subject: [PATCH] Add `category` option for closing multiple tickets --- src/commands/slash/force-close.js | 6 ++++++ src/i18n/en-GB.yml | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/commands/slash/force-close.js b/src/commands/slash/force-close.js index 0410e4c..ffdf9b9 100644 --- a/src/commands/slash/force-close.js +++ b/src/commands/slash/force-close.js @@ -19,6 +19,12 @@ module.exports = class ForceCloseSlashCommand extends SlashCommand { client.i18n.locales.forEach(l => (nameLocalizations[l] = client.i18n.getMessage(l, 'commands.slash.force-close.name'))); let opts = [ + { + autocomplete: true, + name: 'category', + required: false, + type: ApplicationCommandOptionType.Integer, + }, { name: 'reason', required: false, diff --git a/src/i18n/en-GB.yml b/src/i18n/en-GB.yml index a17d9a4..aa7adf7 100644 --- a/src/i18n/en-GB.yml +++ b/src/i18n/en-GB.yml @@ -83,6 +83,9 @@ commands: description: Only staff members can force-close tickets. title: ❌ Error options: + category: + description: Close all tickets in the specified category (can be used with `time`) + name: category reason: description: The reason for closing the ticket(s) name: reason @@ -90,7 +93,7 @@ commands: description: The ticket to close name: ticket time: - description: Close all tickets that have been inactive for the specified time + description: Close all tickets that have been inactive for the specified time (can be used with `category`) name: time help: description: Show the help menu