v3.5.0 push 4

This commit is contained in:
DJj123dj
2023-12-13 21:39:18 +01:00
parent d51511fdb5
commit 94510bbfb0
10 changed files with 368 additions and 11 deletions
+13 -1
View File
@@ -46,9 +46,21 @@ const reopenTicket = (guild,channel,user) => {
}
}
})
channel.permissionOverwrites.set(permissionsArray)
require("../api/modules/events").onTicketReopen(user,channel,guild,new Date(),{name:channel.name,status:"reopened",ticketOptions:false})
//STATS
bot.statsManager.updateGlobalStats("TICKETS_REOPENED",(current) => {
if (typeof current != "undefined") return current+1
return 1
})
bot.statsManager.updateUserStats("TICKETS_REOPENED",user.id,(current) => {
if (typeof current != "undefined") return current+1
return 1
})
bot.statsManager.updateTicketStats("STATUS",channel.id,(current) => {
return "reopened"
})
}
exports.reopenTicket = reopenTicket