From 75b7f01bc5f00def0a85ba58dc44031e5fc5eeac Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 10 Jul 2026 20:49:04 -0400 Subject: [PATCH] ProfileCollectionsAPI & ProfileSectionsAPI: Fix DM Sidebar --- src/equicordplugins/_api/profileCollections.ts | 2 +- src/equicordplugins/_api/profileSections.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/_api/profileCollections.ts b/src/equicordplugins/_api/profileCollections.ts index bf4b9db15..bc0a7b41d 100644 --- a/src/equicordplugins/_api/profileCollections.ts +++ b/src/equicordplugins/_api/profileCollections.ts @@ -32,7 +32,7 @@ export default definePlugin({ { find: ".SIDEBAR,disableToolbar:", replacement: { - match: /user:\i,widgets:.{0,100}?\}\),(?=.{0,200}#{intl::USER_PROFILE_WISHLIST})/, + match: /user:\i,widgets:.{0,100}?\}\),(?=.{0,100}unownedWishlistItems:\i,wishlistId:\i)/, replace: "$&Vencord.Api.ProfileCollections.renderProfileCollections({...arguments[0],isSideBar:true})," } } diff --git a/src/equicordplugins/_api/profileSections.ts b/src/equicordplugins/_api/profileSections.ts index b63c787e5..bee004211 100644 --- a/src/equicordplugins/_api/profileSections.ts +++ b/src/equicordplugins/_api/profileSections.ts @@ -16,7 +16,7 @@ export default definePlugin({ { find: ".SIDEBAR,disableToolbar:", replacement: { - match: /(#{intl::USER_PROFILE_MEMBER_SINCE}\),.{0,100}userId:(\i\.id)\}\)\}\))(?=.{0,200}#{intl::USER_PROFILE_WISHLIST})/, + match: /(#{intl::USER_PROFILE_MEMBER_SINCE}\),.{0,100}userId:(\i\.id)\}\)\}\))(?=.{0,100}unownedWishlistItems:\i,wishlistId:\i)/, replace: "$1,Vencord.Api.ProfileSections.renderProfileSections({userId:$2,isSideBar:true})", } },