diff --git a/src/lib/metro/common.ts b/src/lib/metro/common.ts index 5130691..3d26334 100644 --- a/src/lib/metro/common.ts +++ b/src/lib/metro/common.ts @@ -1,7 +1,7 @@ import { find, findByProps } from "@metro/filters"; // Discord -export const constants = findByProps("API_HOST"); +export { constants } from "@metro/hoist"; export const channels = findByProps("getVoiceChannelId"); export const i18n = findByProps("Messages"); export const url = findByProps("openURL"); diff --git a/src/lib/metro/hoist.ts b/src/lib/metro/hoist.ts index 3b985ca..71b3019 100644 --- a/src/lib/metro/hoist.ts +++ b/src/lib/metro/hoist.ts @@ -10,5 +10,8 @@ window.React = basicFind("createElement") as typeof import("react");; // Export ReactNative export const ReactNative = basicFind("Text") as typeof import("react-native"); +// Export Discord's constants +export const constants = basicFind("ThemeColorMap"); + // Export moment -export const moment = basicFind("isMoment"); \ No newline at end of file +export const moment = basicFind("isMoment");