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
+45
View File
@@ -617,6 +617,29 @@ export const loadAllSlashCommands = async () => {
//TODO: list (v4.2)
]
}))
//TRANSFER
if (allowedCommands.includes("transfer")) commands.add(new api.ODSlashCommand("opendiscord:transfer",{
type:act.ChatInput,
name:"transfer",
description:"Transfer the ticket ownership from one user to another.", //TODO TRANSLATION!!!
contexts:[discord.InteractionContextType.Guild],
integrationTypes:[discord.ApplicationIntegrationType.GuildInstall],
options:[
{
name:"user",
description:"The user to transfer to.", //TODO TRANSLATION!!!
type:acot.User,
required:true
},
{
name:"reason",
description:lang.getTranslation("commands.reason"),
type:acot.String,
required:false
}
]
}))
}
export const loadAllTextCommands = async () => {
@@ -1169,6 +1192,28 @@ export const loadAllTextCommands = async () => {
guildPermission:true,
allowBots:false,
}))
//TRANSFER
if (allowedCommands.includes("transfer")) commands.add(new api.ODTextCommand("opendiscord:transfer",{
name:"transfer",
prefix,
dmPermission:false,
guildPermission:true,
allowBots:false,
options:[
{
name:"user",
type:"user",
required:true
},
{
name:"reason",
type:"string",
required:false,
allowSpaces:true
}
]
}))
}
export const loadAllContextMenus = async () => {