This commit is contained in:
Vendicated 2026-01-23 21:46:14 +01:00
parent 3575d24a08
commit 6a0eff6e6c
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -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<string, {
fetched: boolean;
}>();
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");