feat(alwaysAnimate): animate role gradients (#265)
Some checks failed
Test / Test (push) Has been cancelled
Release / Build Equicord (push) Has been cancelled

This commit is contained in:
Purple_Ξye™ 2025-05-18 03:34:35 +02:00 committed by GitHub
parent ba66e4f8e8
commit 4fa16ce3b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,6 +54,20 @@ export default definePlugin({
match: /(\.headerContent.+?guildBanner:\i,animate:)\i/,
replace: "$1!0"
}
},
{
// Role Gradients
find: "animateGradient:",
all: true,
noWarn: true,
replacement: {
match: /animateGradient:.+?([,}].*?\))/g,
replace: (m, rest) => {
const destructuringMatch = rest.match(/}=.+/);
if (destructuringMatch == null) return `animateGradient:!0${rest}`;
return m;
}
}
}
]
});