From de2716ce5212edc6bb1c2decf72027b76cc0624c Mon Sep 17 00:00:00 2001 From: prism Date: Fri, 23 Jan 2026 22:54:39 +0100 Subject: [PATCH] im hungry (#675) * UserAreaAPI: fix patch * NicknameIconsAPI: fix patch * MemberListDecoratorsAPI: some fix * bleeh * less generic --- src/api/UserArea.tsx | 2 +- src/equicordplugins/_api/userArea.ts | 4 ++-- src/plugins/_api/memberListDecorators/index.tsx | 14 ++++++-------- src/plugins/_api/nicknameIcons.ts | 4 ++-- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/api/UserArea.tsx b/src/api/UserArea.tsx index a3679cd8d..c6cf9b30e 100644 --- a/src/api/UserArea.tsx +++ b/src/api/UserArea.tsx @@ -9,7 +9,7 @@ import { Logger } from "@utils/Logger"; import { findComponentByCodeLazy } from "@webpack"; import type { ComponentType, MouseEventHandler, ReactNode } from "react"; -const PanelButton = findComponentByCodeLazy("tooltipPositionKey", "tooltipShouldShow") as ComponentType; +const PanelButton = findComponentByCodeLazy("tooltipPositionKey", "positionKeyStemOverride") as ComponentType; export interface UserAreaButtonProps { icon: ReactNode; diff --git a/src/equicordplugins/_api/userArea.ts b/src/equicordplugins/_api/userArea.ts index 67a62e72c..b09d91c61 100644 --- a/src/equicordplugins/_api/userArea.ts +++ b/src/equicordplugins/_api/userArea.ts @@ -21,8 +21,8 @@ export default definePlugin({ { find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}", replacement: { - match: /(?<=\(\)\(\i\.\i,.{0,50}children:\[)/, - replace: "...$self.renderButtons(arguments[0])," + match: /(?<=className:(\i)\.\i,style:\i,)children:\[/, + replace: "children:[...$self.renderButtons(arguments[0],$1)," } } ], diff --git a/src/plugins/_api/memberListDecorators/index.tsx b/src/plugins/_api/memberListDecorators/index.tsx index ab0ba5900..94f2cfa1c 100644 --- a/src/plugins/_api/memberListDecorators/index.tsx +++ b/src/plugins/_api/memberListDecorators/index.tsx @@ -30,18 +30,16 @@ export default definePlugin({ patches: [ { - find: "#{intl::GUILD_OWNER}),children:", - replacement: [ - { - match: /children:\[(?=.{0,300},lostPermissionTooltipText:)/, - replace: "children:[Vencord.Api.MemberListDecorators.__getDecorators(arguments[0],'guild')," - } - ] + find: "MemberListItem", + replacement: { + match: /(?<=GuildIcon:\i}=\i.{0,30}Fragment,\{children:\[)/, + replace: "Vencord.Api.MemberListDecorators.__getDecorators(arguments[0],'guild')," + } }, { find: "PrivateChannel.renderAvatar", replacement: { - match: /decorators:(\i\.isSystemDM\(\)\?.+?:null)/, + match: /decorators:(\i\.isSystemDM\(\)\?.{0,100}:null)/, replace: "decorators:[Vencord.Api.MemberListDecorators.__getDecorators(arguments[0],'dm'),$1]" } } diff --git a/src/plugins/_api/nicknameIcons.ts b/src/plugins/_api/nicknameIcons.ts index 6be5f8465..48cc4b70d 100644 --- a/src/plugins/_api/nicknameIcons.ts +++ b/src/plugins/_api/nicknameIcons.ts @@ -15,8 +15,8 @@ export default definePlugin({ { find: "#{intl::USER_PROFILE_PRONOUNS}", replacement: { - match: /(?<=isVerifiedBot\(\).{0,50}\i\.\i,children:)(\i)/, - replace: "[...Vencord.Api.NicknameIcons._renderIcons({userId:arguments[0].user?.id}),$1]" + match: /(?<=isVerifiedBot\(\)}\).{0,60})children:(\i)/, + replace: "children:[...Vencord.Api.NicknameIcons._renderIcons({userId:arguments[0].user?.id}),$1]" } } ]