Skip to content

Commit

Permalink
add usage
Browse files Browse the repository at this point in the history
  • Loading branch information
FnrDev committed Nov 21, 2021
1 parent f558f9d commit 83b380f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions commands/ticket/addUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
}
],
category: "ticket",
usage: "/add **user:**Fnr#0017",
timeout: 3000,
modOnly: true,
ticketOnly: true,
Expand Down
1 change: 1 addition & 0 deletions commands/ticket/close.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
ticketOnly: true,
modOnly: true,
category: "ticket",
usage: "/close",
run: async(interaction) => {
await interaction.channel.permissionOverwrites.set([
{
Expand Down
1 change: 1 addition & 0 deletions commands/ticket/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
modOnly: true,
ticketOnly: true,
category: "ticket",
usage: "/delete",
run: async(interaction, client) => {
const row = new MessageActionRow()
.addComponents(
Expand Down
1 change: 1 addition & 0 deletions commands/ticket/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions commands/ticket/removeUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions commands/ticket/rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions commands/ticket/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 83b380f

Please sign in to comment.