Added all the new config variables for v4.1.0!

This commit is contained in:
DJj123dj
2025-08-05 10:42:15 +02:00
parent adc2433216
commit 549c161830
18 changed files with 455 additions and 86 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ export const registerActions = async () => {
const rawClaimCategory = ticket.option.get("opendiscord:channel-categories-claimed").value.find((c) => c.user == user.id)
const claimCategory = (rawClaimCategory) ? rawClaimCategory.category : null
const closeCategory = ticket.option.get("opendiscord:channel-category-closed").value
const channelDescription = ticket.option.get("opendiscord:channel-description").value
const channelTopic = ticket.option.get("opendiscord:channel-topic").value
const channelName = channelPrefix+channelSuffix
//handle category
@@ -164,7 +164,7 @@ export const registerActions = async () => {
await channel.send((await opendiscord.builders.messages.getSafe("opendiscord:error-channel-rename").build("ticket-move",{guild,channel,user,originalName,newName:channelName})).message)
}
try{
if (channel.type == discord.ChannelType.GuildText) channel.setTopic(channelDescription)
if (channel.type == discord.ChannelType.GuildText) channel.setTopic(channelTopic)
}catch{}
//update ticket message