(v4.2.0) Added /transcripts history command

This commit is contained in:
DJj123dj
2026-05-25 10:47:28 +02:00
parent 9da066e99e
commit e7475af694
17 changed files with 191 additions and 6 deletions
+35
View File
@@ -637,6 +637,25 @@ export async function loadAllSlashCommands(){
}
]
}))
//TRANSCRIPTS
if (allowedCommands.includes("transcripts")) commands.add(new api.ODSlashCommand("opendiscord:transcripts",{
type:act.ChatInput,
name:"transcripts",
//TODO TRANSLATION!!!
description:"View ticket transcript history of a user.",
contexts:[discord.InteractionContextType.Guild],
integrationTypes:[discord.ApplicationIntegrationType.GuildInstall],
options:[
{
name:"user",
//TODO TRANSLATION!!!
description:"The user to view.",
type:acot.User,
required:true
}
]
}))
}
export async function loadAllTextCommands(){
@@ -1211,6 +1230,22 @@ export async function loadAllTextCommands(){
}
]
}))
//TRANSCRIPTS
if (allowedCommands.includes("transcripts")) commands.add(new api.ODTextCommand("opendiscord:transcripts",{
name:"transcripts",
prefix,
dmPermission:false,
guildPermission:true,
allowBots:false,
options:[
{
name:"user",
type:"user",
required:true
}
]
}))
}
export async function loadAllContextMenus(){