From 6c14a6a06c1bcd12c2df472e5358f683ea5b4dd3 Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 27 Oct 2021 19:39:07 -0500 Subject: [PATCH] Rename --- Commands/TicketAdd.js => commands/add.js | 4 +--- Commands/TicketRemove.js => commands/remove.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) rename Commands/TicketAdd.js => commands/add.js (96%) rename Commands/TicketRemove.js => commands/remove.js (96%) diff --git a/Commands/TicketAdd.js b/commands/add.js similarity index 96% rename from Commands/TicketAdd.js rename to commands/add.js index 42e34a2..5aee916 100644 --- a/Commands/TicketAdd.js +++ b/commands/add.js @@ -58,9 +58,7 @@ module.exports = new Command({ interaction.member.roles.cache.has(SupportStaff.id) || interaction.member.roles.cache.has(Admins.id) ) { - if ( - !interaction.channel.name.startsWith(`${supportbot.TicketChannel}-`) - ) { + if (!interaction.channel.name.startsWith(`${supportbot.TicketPrefix}`)) { const Exists = new Discord.MessageEmbed() .setTitle("No Ticket Found!") .setDescription(`${supportbot.NoValidTicket}`) diff --git a/Commands/TicketRemove.js b/commands/remove.js similarity index 96% rename from Commands/TicketRemove.js rename to commands/remove.js index 5e1ed3c..d062584 100644 --- a/Commands/TicketRemove.js +++ b/commands/remove.js @@ -58,9 +58,7 @@ module.exports = new Command({ interaction.member.roles.cache.has(SupportStaff.id) || interaction.member.roles.cache.has(Admins.id) ) { - if ( - !interaction.channel.name.startsWith(`${supportbot.TicketChannel}-`) - ) { + if (!interaction.channel.name.startsWith(`${supportbot.TicketPrefix}`)) { const Exists = new Discord.MessageEmbed() .setTitle("No Ticket Found!") .setDescription(`${supportbot.NoValidTicket}`)