[Toasts] Implement

This commit is contained in:
Beef 2022-10-23 00:51:18 +01:00
parent 111720806c
commit 9f1fe6313d
3 changed files with 24 additions and 1 deletions

View file

@ -1,9 +1,10 @@
import { findByProps } from "@metro/filters";
import { find, findByProps } from "@metro/filters";
// Discord
export const constants = findByProps("API_HOST");
export const channels = findByProps("getVoiceChannelId");
export const i18n = findByProps("Messages");
export const toasts = find(m => m.open && m.close && !m.startDrag && !m.init && !m.openReplay && !m.setAlwaysOnTop);
// React
export const React = findByProps("createElement") as typeof import("react");