diff --git a/src/equicordplugins/soundBoardLogger/utils.ts b/src/equicordplugins/soundBoardLogger/utils.ts index f1fee3ae9..1dfca01b5 100644 --- a/src/equicordplugins/soundBoardLogger/utils.ts +++ b/src/equicordplugins/soundBoardLogger/utils.ts @@ -6,11 +6,10 @@ import { playAudio } from "@api/AudioPlayer"; import { classNameFactory } from "@utils/css"; -import { proxyLazy } from "@utils/lazy"; import { LazyComponent } from "@utils/react"; import { saveFile } from "@utils/web"; import type { User } from "@vencord/discord-types"; -import { findByCode, findByProps, findByPropsLazy } from "@webpack"; +import { findByCode, findByPropsLazy } from "@webpack"; import settings from "./settings"; @@ -32,11 +31,11 @@ export interface SoundLogEntry extends SoundEvent { } export const cl = classNameFactory("vc-soundlog-"); +const EmojiManager = findByPropsLazy("getEmojiColors", "getURL"); export function getEmojiUrl(emoji) { - const { getURL } = proxyLazy(() => findByProps("getEmojiColors", "getURL")); - if (!emoji) return getURL("❓"); // If the sound doesn't have a related emoji - return emoji.id ? `https://cdn.discordapp.com/emojis/${emoji.id}.png?size=32` : getURL(emoji.name); + if (!emoji) return EmojiManager.getURL("❓"); // If the sound doesn't have a related emoji + return emoji.id ? `https://cdn.discordapp.com/emojis/${emoji.id}.png?size=32` : EmojiManager.getURL(emoji.name); } export const playSound = id => {