From 34b69014345ad7e8fc412402fc3f2687a1a23ff2 Mon Sep 17 00:00:00 2001 From: ItzEmerald Date: Tue, 3 Dec 2019 23:24:22 +0000 Subject: [PATCH] Update remove.js --- commands/remove.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/remove.js b/commands/remove.js index e45ae71..08ea1c3 100644 --- a/commands/remove.js +++ b/commands/remove.js @@ -26,7 +26,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}); let rUser = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0])); @@ -71,4 +71,4 @@ console.log(`\x1b[36m`, `${message.author} has successfully removed ${rUser} fro exports.help = { name: bot.settings.Remove_Command, - } \ No newline at end of file + }