Fix MessageDecorationsAPI patch

This commit is contained in:
Nuckyz 2023-10-23 22:42:23 -03:00
parent 544edce9f9
commit 4a2def03e7
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -27,8 +27,8 @@ export default definePlugin({
{
find: ".withMentionPrefix",
replacement: {
match: /(currentUserIsPremium:.{10,50}{children:.{1,2})}\)/,
replace: "$1.concat(Vencord.Api.MessageDecorations.__addDecorationsToMessage(arguments[0]))})"
match: /currentUserIsPremium:.{0,70}{children:\i(?=}\))/,
replace: "$&.concat(Vencord.Api.MessageDecorations.__addDecorationsToMessage(arguments[0]))"
}
}
],