Fix multiple plugins for latest Discord update (#3072)

This commit is contained in:
sadan4 2024-12-12 01:47:55 -05:00 committed by Nuckyz
parent 464c4a9b61
commit 2dc8c2bf76
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
9 changed files with 41 additions and 43 deletions

View file

@ -74,9 +74,9 @@ export default definePlugin({
}
},
{
find: 'react-spring: The "interpolate" function',
find: 'The "interpolate" function is deprecated in v10 (use "to" instead)',
replacement: {
match: /,console.warn\('react-spring: The "interpolate" function is deprecated in v10 \(use "to" instead\)'\)/,
match: /,console.warn\(\i\+'The "interpolate" function is deprecated in v10 \(use "to" instead\)'\)/,
replace: ""
}
},
@ -133,7 +133,7 @@ export default definePlugin({
{
find: "Slow dispatch on",
replacement: {
match: /\i\.totalTime>100&&\i\.verbose\("Slow dispatch on ".+?\)\);/,
match: /\i\.totalTime>\i&&\i\.verbose\("Slow dispatch on ".+?\)\);/,
replace: ""
}
},