mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Add category
option for closing multiple tickets
This commit is contained in:
parent
9b0a1fe50f
commit
8176293089
@ -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')));
|
client.i18n.locales.forEach(l => (nameLocalizations[l] = client.i18n.getMessage(l, 'commands.slash.force-close.name')));
|
||||||
|
|
||||||
let opts = [
|
let opts = [
|
||||||
|
{
|
||||||
|
autocomplete: true,
|
||||||
|
name: 'category',
|
||||||
|
required: false,
|
||||||
|
type: ApplicationCommandOptionType.Integer,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'reason',
|
name: 'reason',
|
||||||
required: false,
|
required: false,
|
||||||
|
@ -83,6 +83,9 @@ commands:
|
|||||||
description: Only staff members can force-close tickets.
|
description: Only staff members can force-close tickets.
|
||||||
title: ❌ Error
|
title: ❌ Error
|
||||||
options:
|
options:
|
||||||
|
category:
|
||||||
|
description: Close all tickets in the specified category (can be used with `time`)
|
||||||
|
name: category
|
||||||
reason:
|
reason:
|
||||||
description: The reason for closing the ticket(s)
|
description: The reason for closing the ticket(s)
|
||||||
name: reason
|
name: reason
|
||||||
@ -90,7 +93,7 @@ commands:
|
|||||||
description: The ticket to close
|
description: The ticket to close
|
||||||
name: ticket
|
name: ticket
|
||||||
time:
|
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
|
name: time
|
||||||
help:
|
help:
|
||||||
description: Show the help menu
|
description: Show the help menu
|
||||||
|
Loading…
Reference in New Issue
Block a user