FakeNitro: fix nitro themes not working for some users (#3666)

This commit is contained in:
sadan4 2025-09-09 22:36:34 -04:00 committed by GitHub
parent 9c0af5adee
commit fbc2dbe781
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -276,6 +276,8 @@ export default definePlugin({
// Allow users to use custom client themes // Allow users to use custom client themes
{ {
find: "customUserThemeSettings:{", find: "customUserThemeSettings:{",
// Discord has two separate modules for treatments 1 and 2
all: true,
replacement: { replacement: {
match: /(?<=\i=)\(0,\i\.\i\)\(\i\.\i\.TIER_2\)(?=,|;)/g, match: /(?<=\i=)\(0,\i\.\i\)\(\i\.\i\.TIER_2\)(?=,|;)/g,
replace: "true" replace: "true"