Fixed autoclose hours showing the wrong number.

Fixed that the ticket message embed shows the wrong amount of hours when used manually with /autoclose enable
This commit is contained in:
DJj123dj
2025-04-08 22:06:22 +02:00
parent 35a0511b97
commit 129053b9f5
+2 -2
View File
@@ -604,8 +604,8 @@ const ticketEmbeds = () => {
instance.setFields(embedOptions.fields) instance.setFields(embedOptions.fields)
} }
if (ticket.get("opendiscord:closed").value && ticket.get("opendiscord:autodelete-enabled").value) instance.setFooter("⏱️ "+lang.getTranslationWithParams("actions.descriptions.ticketMessageAutodelete",[ticket.option.get("opendiscord:autodelete-days").value.toString()])) if (ticket.get("opendiscord:closed").value && ticket.get("opendiscord:autodelete-enabled").value) instance.setFooter("⏱️ "+lang.getTranslationWithParams("actions.descriptions.ticketMessageAutodelete",[ticket.get("opendiscord:autodelete-days").value.toString()]))
else if (!ticket.get("opendiscord:closed").value && ticket.get("opendiscord:autoclose-enabled").value) instance.setFooter("⏱️ "+lang.getTranslationWithParams("actions.descriptions.ticketMessageAutoclose",[ticket.option.get("opendiscord:autoclose-hours").value.toString()])) else if (!ticket.get("opendiscord:closed").value && ticket.get("opendiscord:autoclose-enabled").value) instance.setFooter("⏱️ "+lang.getTranslationWithParams("actions.descriptions.ticketMessageAutoclose",[ticket.get("opendiscord:autoclose-hours").value.toString()]))
if (ticket.get("opendiscord:claimed").value){ if (ticket.get("opendiscord:claimed").value){
const claimUser = await opendiscord.tickets.getTicketUser(ticket,"claimer") const claimUser = await opendiscord.tickets.getTicketUser(ticket,"claimer")