Update close.js
This commit is contained in:
1 parent
320992f3fa
commit
6290fee7bd
1 file changed
+1
-1
+1
-1
@@ -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 );
|
||||
|
||||
Reference in new issue
Block a user