(v4.2.0) Reworked ticket channel name logic

This commit is contained in:
DJj123dj
2026-05-15 22:01:19 +02:00
parent cf9ddf58d0
commit ca5faa3365
11 changed files with 143 additions and 82 deletions
+6
View File
@@ -134,6 +134,12 @@ export interface ODActionManagerIdMappings extends api.ODActionManagerIdConstrai
result:{newCategoryId:string|null,newCategoryMode:string|null,newCategory:discord.CategoryChannel|null,shouldChangeCategory:boolean},
workers:"opendiscord:default-category"|"opendiscord:close-category"|"opendiscord:claim-category"|"opendiscord:backup-category"
},
"opendiscord:calculate-ticket-name":{
origin:"create-ticket"|"close-ticket"|"reopen-ticket"|"claim-ticket"|"unclaim-ticket"|"move-ticket"|"pin-ticket"|"unpin-ticket"|"rename-ticket"|"transfer-ticket"|"priority-change"|"other",
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel|null,user:discord.User,option:ODTicketOption,ticket:ODTicket|null,currentChannelName:string|null},
result:{newChannelName:string,newChannelSuffix:string,shouldChangeName:boolean},
workers:"opendiscord:calculate-ticket-name"
},
}
/////////////////////////////