From 83b380f7485c471e17168509e8ab31743dddbd8f Mon Sep 17 00:00:00 2001 From: FnrDev Date: Sun, 21 Nov 2021 15:24:47 +0300 Subject: [PATCH] add usage --- commands/ticket/addUser.js | 1 + commands/ticket/close.js | 1 + commands/ticket/delete.js | 1 + commands/ticket/new.js | 1 + commands/ticket/removeUser.js | 1 + commands/ticket/rename.js | 1 + commands/ticket/setup.js | 1 + 7 files changed, 7 insertions(+) diff --git a/commands/ticket/addUser.js b/commands/ticket/addUser.js index 756c0b9..b4c7792 100644 --- a/commands/ticket/addUser.js +++ b/commands/ticket/addUser.js @@ -13,6 +13,7 @@ module.exports = { } ], category: "ticket", + usage: "/add **user:**Fnr#0017", timeout: 3000, modOnly: true, ticketOnly: true, diff --git a/commands/ticket/close.js b/commands/ticket/close.js index 533dd9a..d1fe973 100644 --- a/commands/ticket/close.js +++ b/commands/ticket/close.js @@ -7,6 +7,7 @@ module.exports = { ticketOnly: true, modOnly: true, category: "ticket", + usage: "/close", run: async(interaction) => { await interaction.channel.permissionOverwrites.set([ { diff --git a/commands/ticket/delete.js b/commands/ticket/delete.js index 384cf18..c599f25 100644 --- a/commands/ticket/delete.js +++ b/commands/ticket/delete.js @@ -7,6 +7,7 @@ module.exports = { modOnly: true, ticketOnly: true, category: "ticket", + usage: "/delete", run: async(interaction, client) => { const row = new MessageActionRow() .addComponents( diff --git a/commands/ticket/new.js b/commands/ticket/new.js index a01063a..327f47c 100644 --- a/commands/ticket/new.js +++ b/commands/ticket/new.js @@ -6,6 +6,7 @@ module.exports = { description: "Create a new ticket", timeout: 10000, category: "ticket", + usage: "/new", run: async(interaction, client) => { const ticketCatgory = interaction.guild.channels.cache.find(r => r.type === 'GUILD_CATEGORY' && r.name === 'tickets'); if (!ticketCatgory) { diff --git a/commands/ticket/removeUser.js b/commands/ticket/removeUser.js index a2b1a1d..ce68109 100644 --- a/commands/ticket/removeUser.js +++ b/commands/ticket/removeUser.js @@ -15,6 +15,7 @@ module.exports = { timeout: 3000, ticketOnly: true, modOnly: true, + usage: "/remove **user:**Fnr#0017", category: "ticket", run: async(interaction) => { const member = interaction.options.getMember('user'); diff --git a/commands/ticket/rename.js b/commands/ticket/rename.js index 5cc96cd..0c2eb4f 100644 --- a/commands/ticket/rename.js +++ b/commands/ticket/rename.js @@ -15,6 +15,7 @@ module.exports = { modOnly: true, ticketOnly: true, category: "ticket", + usage: "/rename **new_name:**Premium", run: async(interaction) => { const name = interaction.options.getString('new_name'); try { diff --git a/commands/ticket/setup.js b/commands/ticket/setup.js index 9ba3314..073abea 100644 --- a/commands/ticket/setup.js +++ b/commands/ticket/setup.js @@ -6,6 +6,7 @@ module.exports = { description: "Setup ticket category in your server", permission: "ADMINISTRATOR", category: "ticket", + usage: "/setup", run: async(interaction, client) => { const checkTicketCategory = interaction.guild.channels.cache.find(r => r.type === 'GUILD_CATEGORY' && r.name === 'tickets'); if (checkTicketCategory) {