Fixed all currently known bugs :)
This commit is contained in:
+13
-13
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"_TRANSLATION":{
|
"_TRANSLATION":{
|
||||||
"otversion":"v4.0.0",
|
"otversion":"v4.0.0",
|
||||||
"translators":["fraden1mvp.","ChatGPT"],
|
"translators":["fraden1mvp."],
|
||||||
"lastedited":"02/10/2024",
|
"lastedited":"08/10/2024",
|
||||||
"language":"Italian",
|
"language":"Italian",
|
||||||
"automated":true
|
"automated":false
|
||||||
},
|
},
|
||||||
"checker":{
|
"checker":{
|
||||||
"system":{
|
"system":{
|
||||||
@@ -98,8 +98,8 @@
|
|||||||
"close":"Chiudi Ticket",
|
"close":"Chiudi Ticket",
|
||||||
"delete":"Elimina Ticket",
|
"delete":"Elimina Ticket",
|
||||||
"reopen":"Riapri Ticket",
|
"reopen":"Riapri Ticket",
|
||||||
"claim":"Richiedi Ticket",
|
"claim":"Claima Ticket",
|
||||||
"unclaim":"Annulla Richiesta Ticket",
|
"unclaim":"Annulla Claim Ticket",
|
||||||
"pin":"Fissa Ticket",
|
"pin":"Fissa Ticket",
|
||||||
"unpin":"Sblocca Ticket",
|
"unpin":"Sblocca Ticket",
|
||||||
"clear":"Elimina Tickets",
|
"clear":"Elimina Tickets",
|
||||||
@@ -114,8 +114,8 @@
|
|||||||
"close":"Ticket Chiuso",
|
"close":"Ticket Chiuso",
|
||||||
"delete":"Ticket Eliminato",
|
"delete":"Ticket Eliminato",
|
||||||
"reopen":"Ticket Riaperto",
|
"reopen":"Ticket Riaperto",
|
||||||
"claim":"Ticket Richiesto",
|
"claim":"Ticket Claimato",
|
||||||
"unclaim":"Ticket Richiesta Annullata",
|
"unclaim":"Ticket Claim Annullato",
|
||||||
"pin":"Ticket Fissato",
|
"pin":"Ticket Fissato",
|
||||||
"unpin":"Ticket Sbloccato",
|
"unpin":"Ticket Sbloccato",
|
||||||
"rename":"Ticket Rinominato",
|
"rename":"Ticket Rinominato",
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
"close":"Il ticket è stato chiuso con successo!",
|
"close":"Il ticket è stato chiuso con successo!",
|
||||||
"delete":"Il ticket è stato eliminato con successo!",
|
"delete":"Il ticket è stato eliminato con successo!",
|
||||||
"reopen":"Il ticket è stato riaperto con successo!",
|
"reopen":"Il ticket è stato riaperto con successo!",
|
||||||
"claim":"Il ticket è stato richiesto con successo!",
|
"claim":"Il ticket è stato claimato con successo!",
|
||||||
"unclaim":"Il ticket è stato annullato con successo!",
|
"unclaim":"Il ticket è stato annullato con successo!",
|
||||||
"pin":"Il ticket è stato fissato con successo!",
|
"pin":"Il ticket è stato fissato con successo!",
|
||||||
"unpin":"Il ticket è stato sbloccato con successo!",
|
"unpin":"Il ticket è stato sbloccato con successo!",
|
||||||
@@ -186,8 +186,8 @@
|
|||||||
"closePlaceholder":"Perché hai chiuso questo ticket?",
|
"closePlaceholder":"Perché hai chiuso questo ticket?",
|
||||||
"deletePlaceholder":"Perché hai eliminato questo ticket?",
|
"deletePlaceholder":"Perché hai eliminato questo ticket?",
|
||||||
"reopenPlaceholder":"Perché hai riaperto questo ticket?",
|
"reopenPlaceholder":"Perché hai riaperto questo ticket?",
|
||||||
"claimPlaceholder":"Perché hai richiesto questo ticket?",
|
"claimPlaceholder":"Perché hai claimato questo ticket?",
|
||||||
"unclaimPlaceholder":"Perché hai annullato la richiesta di questo ticket?",
|
"unclaimPlaceholder":"Perché hai annullato il Claim di questo ticket?",
|
||||||
"pinPlaceholder":"Perché hai fissato questo ticket?",
|
"pinPlaceholder":"Perché hai fissato questo ticket?",
|
||||||
"unpinPlaceholder":"Perché hai sbloccato questo ticket?"
|
"unpinPlaceholder":"Perché hai sbloccato questo ticket?"
|
||||||
},
|
},
|
||||||
@@ -199,8 +199,8 @@
|
|||||||
"deleteDm":"Il tuo ticket è stato eliminato nel nostro server!",
|
"deleteDm":"Il tuo ticket è stato eliminato nel nostro server!",
|
||||||
"reopenLog":"Questo ticket è stato riaperto da {0}!",
|
"reopenLog":"Questo ticket è stato riaperto da {0}!",
|
||||||
"reopenDm":"Il tuo ticket è stato riaperto nel nostro server!",
|
"reopenDm":"Il tuo ticket è stato riaperto nel nostro server!",
|
||||||
"claimLog":"Questo ticket è stato richiesto da {0}!",
|
"claimLog":"Questo ticket è stato claimato da {0}!",
|
||||||
"claimDm":"Il tuo ticket è stato richiesto nel nostro server!",
|
"claimDm":"Il tuo ticket è stato claimato nel nostro server!",
|
||||||
"unclaimLog":"Questo ticket è stato annullato da {0}!",
|
"unclaimLog":"Questo ticket è stato annullato da {0}!",
|
||||||
"unclaimDm":"Il tuo ticket è stato annullato nel nostro server!",
|
"unclaimDm":"Il tuo ticket è stato annullato nel nostro server!",
|
||||||
"pinLog":"Questo ticket è stato fissato da {0}!",
|
"pinLog":"Questo ticket è stato fissato da {0}!",
|
||||||
@@ -474,4 +474,4 @@
|
|||||||
"transcriptsCreated":"Trascrizioni Create"
|
"transcriptsCreated":"Trascrizioni Create"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -296,7 +296,7 @@ export const loadPanelAutoUpdateCode = async () => {
|
|||||||
const channel = await openticket.client.fetchGuildTextChannel(mainServer,splittedId[0])
|
const channel = await openticket.client.fetchGuildTextChannel(mainServer,splittedId[0])
|
||||||
if (!channel) return
|
if (!channel) return
|
||||||
const message = await openticket.client.fetchGuildChannelMessage(mainServer,channel,splittedId[1])
|
const message = await openticket.client.fetchGuildChannelMessage(mainServer,channel,splittedId[1])
|
||||||
if (!message) return
|
if (!message || !message.editable) return
|
||||||
|
|
||||||
message.edit((await openticket.builders.messages.getSafe("openticket:panel").build("auto-update",{guild:mainServer,channel,user:openticket.client.client.user,panel})).message)
|
message.edit((await openticket.builders.messages.getSafe("openticket:panel").build("auto-update",{guild:mainServer,channel,user:openticket.client.client.user,panel})).message)
|
||||||
openticket.log("Panel in server got auto-updated!","info",[
|
openticket.log("Panel in server got auto-updated!","info",[
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export const addTicketPermissions = async (ticket:api.ODTicket) => {
|
|||||||
const admins = ticket.option.exists("openticket:admins") ? ticket.option.get("openticket:admins").value : []
|
const admins = ticket.option.exists("openticket:admins") ? ticket.option.get("openticket:admins").value : []
|
||||||
const readAdmins = ticket.option.exists("openticket:admins-readonly") ? ticket.option.get("openticket:admins-readonly").value : []
|
const readAdmins = ticket.option.exists("openticket:admins-readonly") ? ticket.option.get("openticket:admins-readonly").value : []
|
||||||
|
|
||||||
admins.concat(readAdmins).forEach(async (admin) => {
|
for (const admin of admins.concat(readAdmins)){
|
||||||
if (openticket.permissions.exists("openticket:ticket-admin_"+ticket.id.value+"_"+admin)) return
|
if (openticket.permissions.exists("openticket:ticket-admin_"+ticket.id.value+"_"+admin)) return
|
||||||
const role = await mainServer.roles.fetch(admin)
|
const role = await mainServer.roles.fetch(admin)
|
||||||
if (!role) return openticket.log("Unable to register permission for ticket admin!","error",[
|
if (!role) return openticket.log("Unable to register permission for ticket admin!","error",[
|
||||||
@@ -70,7 +70,7 @@ export const addTicketPermissions = async (ticket:api.ODTicket) => {
|
|||||||
])
|
])
|
||||||
|
|
||||||
openticket.permissions.add(new api.ODPermission("openticket:ticket-admin_"+ticket.id.value+"_"+admin,"channel-role","support",role,channel))
|
openticket.permissions.add(new api.ODPermission("openticket:ticket-admin_"+ticket.id.value+"_"+admin,"channel-role","support",role,channel))
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const removeTicketPermissions = async (ticket:api.ODTicket) => {
|
export const removeTicketPermissions = async (ticket:api.ODTicket) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user