Fix NoBlockedMessages

This commit is contained in:
thororen1234 2024-12-12 21:26:07 -05:00
parent 8b2f432a24
commit 55078da2e4

View file

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