FakeNitro: Fix wrongfully allowed emojis in voice calls (#2901)

This commit is contained in:
sadan4 2024-09-23 02:07:01 -04:00 committed by Nuckyz
parent c29362ca89
commit d7cbe270e5
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -203,6 +203,15 @@ export default definePlugin({
settings,
patches: [
// Patch the emoji picker in voice calls to not be bypassed by fake nitro
{
find: "emojiItemDisabled]",
predicate: () => settings.store.enableEmojiBypass,
replacement: {
match: /CHAT/,
replace: "STATUS"
}
},
{
find: ".PREMIUM_LOCKED;",
group: true,