(Open Discord) Added support for context menu's

This commit is contained in:
DJj123dj
2025-06-20 18:20:27 +02:00
parent b2f2ef3405
commit 2ea38cd7a5
9 changed files with 513 additions and 4 deletions
+9
View File
@@ -1094,4 +1094,13 @@ export const loadAllTextCommands = async () => {
}
]
}))
}
export const loadAllContextMenus = async () => {
const menus = opendiscord.client.contextMenus
const generalConfig = opendiscord.configs.get("opendiscord:general")
if (!generalConfig) return
const act = discord.ApplicationCommandType
if (!generalConfig.data.slashCommands) return
}
+6
View File
@@ -82,6 +82,12 @@ export const loadAllEvents = () => {
"onSlashCommandRegister",
"afterSlashCommandsRegistered",
//client context menus
"onContextMenuLoad",
"afterContextMenusLoaded",
"onContextMenuRegister",
"afterContextMenusRegistered",
//client text commands
"onTextCommandLoad",
"afterTextCommandsLoaded",
+9
View File
@@ -64,4 +64,13 @@ export const loadAllProgressBars = async () => {
//SLASH COMMAND UPDATE (doesn't have correct amount yet)
opendiscord.progressbars.add(new api.ODManualProgressBar("opendiscord:slash-command-update",fractRenderer.withAdditionalSettings({filledBarColor:"openticket"}),0,"max",null,"Commands Updated"))
//CONTEXT MENU REMOVE (doesn't have correct amount yet)
opendiscord.progressbars.add(new api.ODManualProgressBar("opendiscord:context-menu-remove",fractRenderer.withAdditionalSettings({filledBarColor:"red"}),0,"max",null,"Context Menus Removed"))
//CONTEXT MENU CREATE (doesn't have correct amount yet)
opendiscord.progressbars.add(new api.ODManualProgressBar("opendiscord:context-menu-create",fractRenderer.withAdditionalSettings({filledBarColor:"green"}),0,"max",null,"Context Menus Created"))
//CONTEXT MENU UPDATE (doesn't have correct amount yet)
opendiscord.progressbars.add(new api.ODManualProgressBar("opendiscord:context-menu-update",fractRenderer.withAdditionalSettings({filledBarColor:"openticket"}),0,"max",null,"Context Menus Updated"))
}