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}`)