mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 02:17:03 -04:00
Fix multiple plugins (again)
This commit is contained in:
parent
1e01f85217
commit
b5f626d1ff
11 changed files with 64 additions and 98 deletions
|
@ -47,14 +47,14 @@ export default definePlugin({
|
|||
},
|
||||
...[
|
||||
'"MessageStore"',
|
||||
'"displayName","ReadStateStore")'
|
||||
'"ReadStateStore"'
|
||||
].map(find => ({
|
||||
find,
|
||||
predicate: () => Settings.plugins.NoBlockedMessages.ignoreBlockedMessages === true,
|
||||
replacement: [
|
||||
{
|
||||
match: /(?<=function (\i)\((\i)\){)(?=.*MESSAGE_CREATE:\1)/,
|
||||
replace: (_, _funcName, props) => `if($self.isBlocked(${props}.message))return;`
|
||||
match: /(?<=MESSAGE_CREATE:function\((\i)\){)/,
|
||||
replace: (_, props) => `if($self.isBlocked(${props}.message))return;`
|
||||
}
|
||||
]
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue