Fixed all currently known bugs :)
This commit is contained in:
+12
-12
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"_TRANSLATION":{
|
||||
"otversion":"v4.0.0",
|
||||
"translators":["fraden1mvp.","ChatGPT"],
|
||||
"lastedited":"02/10/2024",
|
||||
"translators":["fraden1mvp."],
|
||||
"lastedited":"08/10/2024",
|
||||
"language":"Italian",
|
||||
"automated":true
|
||||
"automated":false
|
||||
},
|
||||
"checker":{
|
||||
"system":{
|
||||
@@ -98,8 +98,8 @@
|
||||
"close":"Chiudi Ticket",
|
||||
"delete":"Elimina Ticket",
|
||||
"reopen":"Riapri Ticket",
|
||||
"claim":"Richiedi Ticket",
|
||||
"unclaim":"Annulla Richiesta Ticket",
|
||||
"claim":"Claima Ticket",
|
||||
"unclaim":"Annulla Claim Ticket",
|
||||
"pin":"Fissa Ticket",
|
||||
"unpin":"Sblocca Ticket",
|
||||
"clear":"Elimina Tickets",
|
||||
@@ -114,8 +114,8 @@
|
||||
"close":"Ticket Chiuso",
|
||||
"delete":"Ticket Eliminato",
|
||||
"reopen":"Ticket Riaperto",
|
||||
"claim":"Ticket Richiesto",
|
||||
"unclaim":"Ticket Richiesta Annullata",
|
||||
"claim":"Ticket Claimato",
|
||||
"unclaim":"Ticket Claim Annullato",
|
||||
"pin":"Ticket Fissato",
|
||||
"unpin":"Ticket Sbloccato",
|
||||
"rename":"Ticket Rinominato",
|
||||
@@ -146,7 +146,7 @@
|
||||
"close":"Il ticket è stato chiuso con successo!",
|
||||
"delete":"Il ticket è stato eliminato 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!",
|
||||
"pin":"Il ticket è stato fissato con successo!",
|
||||
"unpin":"Il ticket è stato sbloccato con successo!",
|
||||
@@ -186,8 +186,8 @@
|
||||
"closePlaceholder":"Perché hai chiuso questo ticket?",
|
||||
"deletePlaceholder":"Perché hai eliminato questo ticket?",
|
||||
"reopenPlaceholder":"Perché hai riaperto questo ticket?",
|
||||
"claimPlaceholder":"Perché hai richiesto questo ticket?",
|
||||
"unclaimPlaceholder":"Perché hai annullato la richiesta di questo ticket?",
|
||||
"claimPlaceholder":"Perché hai claimato questo ticket?",
|
||||
"unclaimPlaceholder":"Perché hai annullato il Claim di questo ticket?",
|
||||
"pinPlaceholder":"Perché hai fissato questo ticket?",
|
||||
"unpinPlaceholder":"Perché hai sbloccato questo ticket?"
|
||||
},
|
||||
@@ -199,8 +199,8 @@
|
||||
"deleteDm":"Il tuo ticket è stato eliminato nel nostro server!",
|
||||
"reopenLog":"Questo ticket è stato riaperto da {0}!",
|
||||
"reopenDm":"Il tuo ticket è stato riaperto nel nostro server!",
|
||||
"claimLog":"Questo ticket è stato richiesto da {0}!",
|
||||
"claimDm":"Il tuo ticket è stato richiesto nel nostro server!",
|
||||
"claimLog":"Questo ticket è stato claimato da {0}!",
|
||||
"claimDm":"Il tuo ticket è stato claimato nel nostro server!",
|
||||
"unclaimLog":"Questo ticket è stato annullato da {0}!",
|
||||
"unclaimDm":"Il tuo ticket è stato annullato nel nostro server!",
|
||||
"pinLog":"Questo ticket è stato fissato da {0}!",
|
||||
|
||||
@@ -296,7 +296,7 @@ export const loadPanelAutoUpdateCode = async () => {
|
||||
const channel = await openticket.client.fetchGuildTextChannel(mainServer,splittedId[0])
|
||||
if (!channel) return
|
||||
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)
|
||||
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 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
|
||||
const role = await mainServer.roles.fetch(admin)
|
||||
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))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export const removeTicketPermissions = async (ticket:api.ODTicket) => {
|
||||
|
||||
Reference in New Issue
Block a user