Merge remote-tracking branch 'upstream/dev'

This commit is contained in:
thororen1234 2024-12-12 02:19:56 -05:00
commit fc7827a2f0
9 changed files with 44 additions and 49 deletions

View file

@ -71,8 +71,8 @@ export default definePlugin({
predicate: () => settings.store.ignoreBlockedMessages === true,
replacement: [
{
match: /(?<=MESSAGE_CREATE:function\((\i)\){)/,
replace: (_, props) => `if($self.isBlocked(${props}.message)||$self.isReplyToBlocked(${props}.message))return;`
match: /(?<=function (\i)\((\i)\){)(?=.*MESSAGE_CREATE:\1)/,
replace: (_, _funcName, props) => `if($self.isBlocked(${props}.message))return;`
}
]
})),