[Metro] Hoist Discord's constants

This commit is contained in:
Beef 2023-01-17 08:01:53 +00:00
parent da83d4756a
commit a9cc702956
2 changed files with 5 additions and 2 deletions

View file

@ -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");

View file

@ -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");