diff --git a/src/plugins/alwaysAnimate/index.ts b/src/plugins/alwaysAnimate/index.ts index 4064de9f..e7d94d55 100644 --- a/src/plugins/alwaysAnimate/index.ts +++ b/src/plugins/alwaysAnimate/index.ts @@ -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; + } + } } ] });