(Open Discord) Added support for context menu's
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -82,6 +82,12 @@ export const loadAllEvents = () => {
|
||||
"onSlashCommandRegister",
|
||||
"afterSlashCommandsRegistered",
|
||||
|
||||
//client context menus
|
||||
"onContextMenuLoad",
|
||||
"afterContextMenusLoaded",
|
||||
"onContextMenuRegister",
|
||||
"afterContextMenusRegistered",
|
||||
|
||||
//client text commands
|
||||
"onTextCommandLoad",
|
||||
"afterTextCommandsLoaded",
|
||||
|
||||
@@ -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"))
|
||||
}
|
||||
Reference in New Issue
Block a user