Update ticket.js
This commit is contained in:
1 parent
45d3867c1f
commit
bd714f0c93
1 file changed
+1
-1
+1
-1
@@ -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 => {
|
||||
|
||||
|
||||
Reference in new issue
Block a user