From 75847147d132ff5eb432dbdd7f12fdc0a03c86a1 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 7 May 2024 03:20:56 -0300 Subject: [PATCH] FakeNitro: Add custom notifications sound bypass --- src/plugins/fakeNitro/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugins/fakeNitro/index.tsx b/src/plugins/fakeNitro/index.tsx index ad7394dc..03feda0a 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -400,6 +400,14 @@ export default definePlugin({ match: /(?<=type:"(?:SOUNDBOARD_SOUNDS_RECEIVED|GUILD_SOUNDBOARD_SOUND_CREATE|GUILD_SOUNDBOARD_SOUND_UPDATE|GUILD_SOUNDBOARD_SOUNDS_UPDATE)".+?available:)\i\.available/g, replace: "true" } + }, + // Allow using custom notification sounds + { + find: "canUseCustomNotificationSounds:function", + replacement: { + match: /canUseCustomNotificationSounds:function\(\i\){/, + replace: "$&return true;" + } } ],