From 6a0eff6e6cc19b32b498a50ab5be2b05b4ccf36f Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 23 Jan 2026 21:46:14 +0100 Subject: [PATCH] fix MLE --- src/plugins/messageLinkEmbeds/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/messageLinkEmbeds/index.tsx b/src/plugins/messageLinkEmbeds/index.tsx index 7a50c70f5..bc8524305 100644 --- a/src/plugins/messageLinkEmbeds/index.tsx +++ b/src/plugins/messageLinkEmbeds/index.tsx @@ -25,7 +25,7 @@ import { classes } from "@utils/misc"; import { Queue } from "@utils/Queue"; import definePlugin, { OptionType } from "@utils/types"; import { Channel, Message } from "@vencord/discord-types"; -import { findComponentByCodeLazy, findCssClassesLazy } from "@webpack"; +import { findComponentByCodeLazy, findComponentLazy, findCssClassesLazy } from "@webpack"; import { Button, ChannelStore, @@ -47,8 +47,8 @@ const messageCache = new Map(); -const Embed = findComponentByCodeLazy(".inlineMediaEmbed"); -const AutoModEmbed = findComponentByCodeLazy(".withFooter]:", "childrenMessageContent:"); +const Embed = findComponentLazy(m => m.prototype?.renderSuppressButton); +const AutoModEmbed = findComponentByCodeLazy("withFooter", "childrenMessageContent:"); const ChannelMessage = findComponentByCodeLazy("childrenExecutedCommand:", ".hideAccessories"); const SearchResultClasses = findCssClassesLazy("message", "searchResult");