Update updateTicketTopic.ts

This commit is contained in:
DJj123dj
2026-05-26 19:27:49 +02:00
parent adfcb1c82f
commit 39427cdbea
+2
View File
@@ -52,6 +52,8 @@ export async function registerActions(){
}), }),
new api.ODWorker("opendiscord:discord-logs",1,async (instance,params,origin,cancel) => { new api.ODWorker("opendiscord:discord-logs",1,async (instance,params,origin,cancel) => {
const {guild,channel,user,ticket,newTopic} = params const {guild,channel,user,ticket,newTopic} = params
if (!newTopic) return //only log when topic actually changed
//to logs //to logs
if (generalConfig.data.logs.enabled && generalConfig.data.logs.logMessages.topicChange.logs){ if (generalConfig.data.logs.enabled && generalConfig.data.logs.logMessages.topicChange.logs){