3.0 public beta 4

This commit is contained in:
DJj123dj
2022-10-05 20:25:35 +02:00
parent 69b669956e
commit e4c1e2559e
27 changed files with 397 additions and 51 deletions
+10
View File
@@ -154,6 +154,16 @@ exports.NEWcloseTicket = async (member,channel,prefix,mode,reason,nomessage) =>
if (!ticketData) return
if (ticketData.closedCategory.enable){
/**@type {discord.CategoryChannel} */
const category = guild.channels.cache.find(c => c.id == ticketData.closedCategory.id && c.type == discord.ChannelType.GuildCategory)
try {
channel.setParent(category)
}catch{
bot.errorLog.log("system","failed to move channel to new category!")
}
}
/**
* @type {String[]}
*/