(v4.2.0) Added /transcripts history command
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user