diff --git a/commands/rename.js b/commands/rename.js index 9364b09..fc2d658 100644 --- a/commands/rename.js +++ b/commands/rename.js @@ -24,7 +24,7 @@ exports.run = (bot, message, args) => { const outsideticket = new Discord.RichEmbed() .setDescription(`:x: Cannot use this command becase you are outside a ticket channel.`) .setColor(bot.settings.colour) - if (!message.channel.name.startsWith(`ticket-`)) return message.channel.send({embed: outsideticket}); + if (!message.channel.name.startsWith(`${bot.settings.Ticket_Channel_Name}-`)) return message.channel.send({embed: outsideticket}); const renameto = args.join(" ") message.channel.setName(`${bot.settings.Ticket_Channel_Name}-${renameto}`)