diff options
author | Nico <nico@d3sox.me> | 2022-11-07 22:23:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 22:23:34 +0100 |
commit | 7d5ade21fc9b56d21e2eb9e5b0d35502432adaa2 (patch) | |
tree | f89faaff4d3ddae39c20ecf84bf0ce6cd12a696e /src/plugins/apiMessageEvents.ts | |
parent | d69dfd62057182756610f4dbc644d074301d9433 (diff) | |
download | Vencord-7d5ade21fc9b56d21e2eb9e5b0d35502432adaa2.tar.gz Vencord-7d5ade21fc9b56d21e2eb9e5b0d35502432adaa2.tar.bz2 Vencord-7d5ade21fc9b56d21e2eb9e5b0d35502432adaa2.zip |
feat(nitroBypass): add sticker bypass (#184)
Co-authored-by: Vendicated <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/apiMessageEvents.ts')
-rw-r--r-- | src/plugins/apiMessageEvents.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/apiMessageEvents.ts b/src/plugins/apiMessageEvents.ts index 541c12d..bf7c7f5 100644 --- a/src/plugins/apiMessageEvents.ts +++ b/src/plugins/apiMessageEvents.ts @@ -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);" |