diff options
author | V <vendicated@riseup.net> | 2023-07-10 22:39:40 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-07-10 22:39:40 +0200 |
commit | 8aea72c1be3635afae3225b5a90eaf837342bef4 (patch) | |
tree | 14278387d9037b35a22d8db373ecd34f8d891539 /src/plugins/fakeNitro.ts | |
parent | bea7a1711e365e736cf3a9f86928fa0bdeff620a (diff) | |
download | Vencord-8aea72c1be3635afae3225b5a90eaf837342bef4.tar.gz Vencord-8aea72c1be3635afae3225b5a90eaf837342bef4.tar.bz2 Vencord-8aea72c1be3635afae3225b5a90eaf837342bef4.zip |
FakeNitro: Fix crash
Diffstat (limited to 'src/plugins/fakeNitro.ts')
-rw-r--r-- | src/plugins/fakeNitro.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/fakeNitro.ts b/src/plugins/fakeNitro.ts index 34cd63b..cd2dda8 100644 --- a/src/plugins/fakeNitro.ts +++ b/src/plugins/fakeNitro.ts @@ -565,7 +565,11 @@ export default definePlugin({ switch (embed.type) { case "image": { - if (!settings.store.transformCompoundSentence && !contentItems.includes(embed.url!) && !contentItems.includes(embed.image!.proxyURL)) return false; + if ( + !settings.store.transformCompoundSentence + && !contentItems.includes(embed.url!) + && !contentItems.includes(embed.image?.proxyURL!) + ) return false; if (settings.store.transformEmojis) { if (fakeNitroEmojiRegex.test(embed.url!)) return true; |