(API) Implemented opendiscord:reopened in database
This commit is contained in:
@@ -17,10 +17,15 @@ export const registerActions = async () => {
|
|||||||
|
|
||||||
//update ticket
|
//update ticket
|
||||||
ticket.get("opendiscord:closed").value = true
|
ticket.get("opendiscord:closed").value = true
|
||||||
if (source == "autoclose") ticket.get("opendiscord:autoclosed").value = true
|
|
||||||
ticket.get("opendiscord:open").value = false
|
|
||||||
ticket.get("opendiscord:closed-by").value = user.id
|
ticket.get("opendiscord:closed-by").value = user.id
|
||||||
ticket.get("opendiscord:closed-on").value = new Date().getTime()
|
ticket.get("opendiscord:closed-on").value = new Date().getTime()
|
||||||
|
|
||||||
|
ticket.get("opendiscord:reopened").value = false
|
||||||
|
ticket.get("opendiscord:reopened-by").value = null
|
||||||
|
ticket.get("opendiscord:reopened-on").value = null
|
||||||
|
|
||||||
|
if (source == "autoclose") ticket.get("opendiscord:autoclosed").value = true
|
||||||
|
ticket.get("opendiscord:open").value = false
|
||||||
ticket.get("opendiscord:busy").value = true
|
ticket.get("opendiscord:busy").value = true
|
||||||
|
|
||||||
//update stats
|
//update stats
|
||||||
|
|||||||
@@ -16,11 +16,16 @@ export const registerActions = async () => {
|
|||||||
await opendiscord.events.get("onTicketReopen").emit([ticket,user,channel,reason])
|
await opendiscord.events.get("onTicketReopen").emit([ticket,user,channel,reason])
|
||||||
|
|
||||||
//update ticket
|
//update ticket
|
||||||
|
ticket.get("opendiscord:reopened").value = true
|
||||||
|
ticket.get("opendiscord:reopened-by").value = user.id
|
||||||
|
ticket.get("opendiscord:reopened-on").value = new Date().getTime()
|
||||||
|
|
||||||
ticket.get("opendiscord:closed").value = false
|
ticket.get("opendiscord:closed").value = false
|
||||||
ticket.get("opendiscord:open").value = true
|
|
||||||
ticket.get("opendiscord:autoclosed").value = false
|
|
||||||
ticket.get("opendiscord:closed-by").value = null
|
ticket.get("opendiscord:closed-by").value = null
|
||||||
ticket.get("opendiscord:closed-on").value = null
|
ticket.get("opendiscord:closed-on").value = null
|
||||||
|
|
||||||
|
ticket.get("opendiscord:autoclosed").value = false
|
||||||
|
ticket.get("opendiscord:open").value = true
|
||||||
ticket.get("opendiscord:busy").value = true
|
ticket.get("opendiscord:busy").value = true
|
||||||
|
|
||||||
//update stats
|
//update stats
|
||||||
|
|||||||
Reference in New Issue
Block a user