From 0ac5c2c300e7d6355fc03066b20665933b223921 Mon Sep 17 00:00:00 2001 From: ItzEmerald Date: Tue, 3 Dec 2019 23:23:33 +0000 Subject: [PATCH] Update forceclose.js --- commands/forceclose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/forceclose.js b/commands/forceclose.js index b30cc64..1b90789 100644 --- a/commands/forceclose.js +++ b/commands/forceclose.js @@ -24,7 +24,7 @@ if (!message.member.roles.has(staffGroup.id)) return message.reply({embed: donot 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 log = message.guild.channels.find(channel => channel.name === bot.settings.Transcript_Logs) const uID = message.author const reason = args.join(" ") || "No Reason Provided.";