Added priority commands (/priority get,set)

This commit is contained in:
DJj123dj
2025-11-02 18:41:46 +01:00
parent a40a9b8be8
commit 34ed4edede
15 changed files with 222 additions and 19 deletions
+4 -1
View File
@@ -31,8 +31,11 @@ export const registerActions = async () => {
}
//rename channel (and give error when crashed)
const pinEmoji = ticket.get("opendiscord:pinned").value ? generalConfig.data.system.pinEmoji : ""
const priorityEmoji = opendiscord.priorities.getFromPriorityLevel(ticket.get("opendiscord:priority").value).channelEmoji ?? ""
const originalName = channel.name
const newName = "📌"+channel.name
const newName = pinEmoji+priorityEmoji+utilities.trimEmojis(channel.name)
try{
await utilities.timedAwait(channel.setName(newName),2500,(err) => {
opendiscord.log("Failed to rename channel on ticket pin","error")