Implemented ODComponents (Part 2)

This commit is contained in:
DJj123dj
2026-05-04 19:24:15 +02:00
parent e4b4acfd9f
commit 1f9fa54344
5 changed files with 45 additions and 4 deletions
+24
View File
@@ -634,6 +634,30 @@ const main = async () => {
await opendiscord.events.get("onModalBuilderLoad").emit([opendiscord.builders.modals,opendiscord.builders,opendiscord.actions])
await opendiscord.events.get("afterModalBuildersLoaded").emit([opendiscord.builders.modals,opendiscord.builders,opendiscord.actions])
//load shared components
opendiscord.log("Loading shared components...","system")
if (opendiscord.sharedFuses.getFuse("sharedComponentsLoading")){
//TODO TODO
}
await opendiscord.events.get("onSharedComponentLoad").emit([opendiscord.components.shared,opendiscord.components,opendiscord.actions])
await opendiscord.events.get("afterSharedComponentsLoaded").emit([opendiscord.components.shared,opendiscord.components,opendiscord.actions])
//load message components
opendiscord.log("Loading message components...","system")
if (opendiscord.sharedFuses.getFuse("messageComponentsLoading")){
//TODO TODO
}
await opendiscord.events.get("onMessageComponentLoad").emit([opendiscord.components.messages,opendiscord.components,opendiscord.actions])
await opendiscord.events.get("afterMessageComponentsLoaded").emit([opendiscord.components.messages,opendiscord.components,opendiscord.actions])
//load modal components
opendiscord.log("Loading modal components...","system")
if (opendiscord.sharedFuses.getFuse("modalComponentsLoading")){
//TODO TODO
}
await opendiscord.events.get("onModalComponentLoad").emit([opendiscord.components.modals,opendiscord.components,opendiscord.actions])
await opendiscord.events.get("afterModalComponentsLoaded").emit([opendiscord.components.modals,opendiscord.components,opendiscord.actions])
//plugin loading before responders
await opendiscord.events.get("onPluginBeforeResponderLoad").emit([])
await opendiscord.events.get("afterPluginBeforeResponderLoaded").emit([])