Fix multiple plugins (again)

This commit is contained in:
Nuckyz 2024-10-05 08:01:40 -03:00
parent 1e01f85217
commit b5f626d1ff
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
11 changed files with 64 additions and 98 deletions

View file

@ -113,8 +113,8 @@ export default definePlugin({
{
find: '"MessageReactionsStore"',
replacement: {
match: /function (\i)\(\){(\i)={}(?=.*CONNECTION_OPEN:\1)/,
replace: "$&;$self.reactions=$2;"
match: /(?<=CONNECTION_OPEN:function\(\){)(\i)={}/,
replace: "$&;$self.reactions=$1"
}
},
{