Added transfer command (/transfer) + new stats

With this command you're able to transfer the ticket ownership to another person in the server.
This commit is contained in:
DJj123dj
2025-11-02 20:09:38 +01:00
parent 68a8170570
commit c7b44232c4
14 changed files with 345 additions and 21 deletions
+9
View File
@@ -1102,4 +1102,13 @@ const extraMessages = () => {
instance.addEmbed(await embeds.getSafe("opendiscord:priority-get").build(source,{guild,channel,user,ticket,priority}))
})
)
//TRANSFER MESSAGE
messages.add(new api.ODMessage("opendiscord:transfer-message"))
messages.get("opendiscord:transfer-message").workers.add(
new api.ODWorker("opendiscord:transfer-message",0,async (instance,params,source) => {
const {guild,channel,user,ticket,oldCreator,newCreator,reason} = params
instance.addEmbed(await embeds.getSafe("opendiscord:transfer-message").build(source,{guild,channel,user,ticket,oldCreator,newCreator,reason}))
})
)
}