Update ticket.js

This commit is contained in:
ItzEmerald authored and GitHub committed 2019-12-03 23:15:52 +00:00
1 parent 45d3867c1f
commit bd714f0c93
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ exports.run = (bot, message, args) => {
.setDescription(`:x: Cannot create a ticket because **${bot.settings.Ticket_Channel_Name}-${message.author.username}** already exists.`)
.setColor(bot.settings.colour)
if (message.guild.channels.find(TicketChannel => TicketChannel.name === `${bot.settings.Ticket_Channel_Name}-` + message.author.username)) return message.channel.send(alreadyopen);
message.guild.createChannel(`ticket-${message.author.username}`, {
message.guild.createChannel(`${bot.settings.Ticket_Channel_Name}-${message.author.username}`, {
type: 'text',
}).then(TicketChannel => {