feat(nitroBypass): add sticker bypass (#184)

Co-authored-by: Vendicated <vendicated@riseup.net>
This commit is contained in:
Nico 2022-11-07 22:23:34 +01:00 committed by GitHub
parent d69dfd6205
commit 7d5ade21fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 307 additions and 55 deletions

View file

@ -28,7 +28,7 @@ export default definePlugin({
find: "sendMessage:function",
replacement: [{
match: /(?<=_sendMessage:function\([^)]+\)){/,
replace: "{Vencord.Api.MessageEvents._handlePreSend(...arguments);"
replace: "{if(Vencord.Api.MessageEvents._handlePreSend(...arguments)){return;};"
}, {
match: /(?<=\beditMessage:function\([^)]+\)){/,
replace: "{Vencord.Api.MessageEvents._handlePreEdit(...arguments);"