From 507e963efc0c8d9174b49d3b71413de40ac03cfd Mon Sep 17 00:00:00 2001 From: Isaac Date: Thu, 6 Oct 2022 12:49:38 +0100 Subject: [PATCH] update `/force-close` options --- src/commands/slash/force-close.js | 16 ++++++---------- src/i18n/en-GB.yml | 9 +++------ 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/src/commands/slash/force-close.js b/src/commands/slash/force-close.js index a122652..affc2ac 100644 --- a/src/commands/slash/force-close.js +++ b/src/commands/slash/force-close.js @@ -10,21 +10,17 @@ module.exports = class ForceCloseSlashCommand extends SlashCommand { client.i18n.locales.forEach(l => (nameLocalizations[l] = client.i18n.getMessage(l, 'commands.slash.force-close.name'))); let opts = [ - { - name: 'channel', - required: false, - type: ApplicationCommandOptionType.Channel, - }, - { - name: 'number', - required: false, - type: ApplicationCommandOptionType.Integer, - }, { name: 'reason', required: false, type: ApplicationCommandOptionType.String, }, + { + autocomplete: true, + name: 'ticket', + required: false, + type: ApplicationCommandOptionType.Integer, + }, { name: 'time', required: false, diff --git a/src/i18n/en-GB.yml b/src/i18n/en-GB.yml index 4fef492..4711284 100644 --- a/src/i18n/en-GB.yml +++ b/src/i18n/en-GB.yml @@ -65,15 +65,12 @@ commands: description: Forcibly close a ticket name: force-close options: - channel: - description: The ticket channel to close - name: channel - number: - description: The number of the ticket to close - name: number reason: description: The reason for closing the ticket(s) name: reason + ticket: + description: The ticket to close + name: ticket time: description: Close all tickets that have been inactive for the specific time name: time