diff --git a/globals.d.ts b/globals.d.ts index 5b91764..4ddebd8 100644 --- a/globals.d.ts +++ b/globals.d.ts @@ -63,7 +63,9 @@ declare global { * * *Do not use this explicitly* */ - require: (id: I) => RequireResult; + require: ((id: I) => RequireResult) & { + all: InternalModule[]; + }; webpackChunkdiscord_app: any; DiscordNative: any; diff --git a/packages/renderer/index.ts b/packages/renderer/index.ts index 4ba387e..df4b7ff 100644 --- a/packages/renderer/index.ts +++ b/packages/renderer/index.ts @@ -76,6 +76,8 @@ window.require = (id: string) => { } }; +window.require.all = ["aero", "aero/dom", "aero/badges", "aero/plugin", "aero/webpack", "aero/theme", "aero/ui"]; + const initialise = async () => { window.DiscordNative?.window.setDevtoolsCallbacks((_) => _);