ProfileCollectionsAPI & ProfileSectionsAPI: Fix DM Sidebar

This commit is contained in:
thororen1234 2026-07-10 20:49:04 -04:00
parent 7a040a1e90
commit 75b7f01bc5
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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}),"
}
}

View file

@ -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})",
}
},