Fix FakeNitro

This commit is contained in:
Vendicated 2024-03-28 04:21:52 +01:00
parent c997ff7ada
commit e71fcc3010
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
3 changed files with 4 additions and 4 deletions

View file

@ -214,7 +214,7 @@ export default definePlugin({
{
// Make the emoji always available if the intention allows it
match: /if\(!\i\.available/,
replace: m => `${m}&&(typeof fakeNitroIntention==="undefined"||![${EmojiIntentions.CHAT},${EmojiIntentions.GUILD_STICKER_RELATED_EMOJI}].includes(fakeNitroIntention))`
replace: m => `${m}&&(typeof fakeNitroIntention==="undefined"||![${1},${EmojiIntentions.GUILD_STICKER_RELATED_EMOJI}].includes(fakeNitroIntention))`
}
]
},
@ -277,7 +277,7 @@ export default definePlugin({
}
},
{
find: '.displayName="UserSettingsProtoStore"',
find: '"UserSettingsProtoStore"',
replacement: [
{
// Overwrite incoming connection settings proto with our local settings