From 6290fee7bdac57df3a92ed62b4f75788b763c5b3 Mon Sep 17 00:00:00 2001 From: ItzEmerald Date: Tue, 3 Dec 2019 23:22:54 +0000 Subject: [PATCH] Update close.js --- commands/close.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );