Update rename.js

This commit is contained in:
ItzEmerald authored and GitHub committed 2019-12-03 23:24:43 +00:00
1 parent 34b6901434
commit 0fb25d71dc
1 file changed
+2 -2
+2 -2
View File
@@ -26,12 +26,12 @@ exports.run = (bot, message, args) => {
.setColor(bot.settings.colour)
if (!message.channel.name.startsWith(`ticket-`)) return message.channel.send({embed: outsideticket});
const renameto = args.join(" ")
message.channel.setName(`ticket-${renameto}`)
message.channel.setName(`${bot.settings.Ticket_Channel_Name}-${renameto}`)
// Renamed Ticket Logistic
const logEmbed = new Discord.RichEmbed()
.setTitle(":ticket: Ticket Renamed")
.setDescription(`<@${message.author.id}> has renamed a ticket to ${renameto}`)
.setDescription(`<@${message.author.id}> has renamed a ticket to ${bot.settings.Ticket_Channel_Name}-${renameto}`)
.setColor(bot.settings.colour)
.setFooter(bot.settings.footer)