Decor: Revert patch change

This commit is contained in:
thororen1234 2026-05-01 09:44:08 -04:00
parent 65dd4056ab
commit 4d07735245
No known key found for this signature in database

View file

@ -111,10 +111,16 @@ export default definePlugin({
// Patch avatar decoration preview to display Decor avatar decorations as if they are purchased
{
find: "#{intl::PREMIUM_UPSELL_PROFILE_AVATAR_DECO_INLINE_UPSELL_DESCRIPTION}",
replacement: {
match: /(?<==)\i=>{let{user:\i,guildId:\i,avatarDecoration:/,
replace: "$self.AvatarDecorationModalPreview=$&"
}
replacement: [
{
match: /(#{intl::PREMIUM_UPSELL_PROFILE_AVATAR_DECO_INLINE_UPSELL_DESCRIPTION}.+?return null!=(\i)&&\()(null==\i)/,
replace: (_, rest, avatarDecoration, hasPurchase) => `${rest}(${avatarDecoration}.skuId!==$self.SKU_ID&&${avatarDecoration}.skuId!==$self.RAW_SKU_ID&&${hasPurchase})`
},
{
match: /(?<==)\i=>{let{user:\i,guildId:\i,avatarDecoration:/,
replace: "$self.AvatarDecorationModalPreview=$&"
}
]
}
],
settings,