[Toasts] Implement
This commit is contained in:
parent
111720806c
commit
9f1fe6313d
3 changed files with 24 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue