diff --git a/commands/close.js b/commands/close.js index 6d06105..ee69a6a 100644 --- a/commands/close.js +++ b/commands/close.js @@ -13,7 +13,7 @@ exports.run = ( bot, message, args ) => { message.delete(); - if ( !message.channel.name.startsWith( `ticket-` ) ) { + if ( !message.channel.name.startsWith( `${bot.settings.Ticket_Channel_Name}-` ) ) { const embed = new Discord.RichEmbed() .setDescription( `:x: Cannot use this command becase you are outside a ticket channel.` ) .setColor( bot.settings.colour );