Kyza / BetterDiscordPlugins

9 stars 6 forks source link

Cannot read property 'icon' of undefined #2

Open MenelBOT opened 2 years ago

MenelBOT commented 2 years ago

When opening settings menu throws error Err error in console

a50299e8e54f49bd7c07.js:130 TypeError: Cannot read property 'icon' of undefined
    at m (3ed0e9e7a079e0236cf5.js:2272)
    at so (3ed0e9e7a079e0236cf5.js:5563)
    at $s (3ed0e9e7a079e0236cf5.js:5615)
    at Gu (3ed0e9e7a079e0236cf5.js:5606)
    at wu (3ed0e9e7a079e0236cf5.js:5606)
    at Uu (3ed0e9e7a079e0236cf5.js:5606)
    at Ou (3ed0e9e7a079e0236cf5.js:5603)
    at 3ed0e9e7a079e0236cf5.js:5548
    at t.unstable_runWithPriority (3ed0e9e7a079e0236cf5.js:5842)
    at Ka (3ed0e9e7a079e0236cf5.js:5548)
    at qa (3ed0e9e7a079e0236cf5.js:5548)
    at Xa (3ed0e9e7a079e0236cf5.js:5548)
    at Ue (3ed0e9e7a079e0236cf5.js:5625)
    at en (3ed0e9e7a079e0236cf5.js:5525)
    at HTMLDivElement.r (a50299e8e54f49bd7c07.js:126)
(anonymous) @ a50299e8e54f49bd7c07.js:130
a50299e8e54f49bd7c07.js:130 TypeError: Cannot read property 'icon' of undefined
    at m (3ed0e9e7a079e0236cf5.js:2272)
    at so (3ed0e9e7a079e0236cf5.js:5563)
    at $s (3ed0e9e7a079e0236cf5.js:5615)
    at Gu (3ed0e9e7a079e0236cf5.js:5606)
    at wu (3ed0e9e7a079e0236cf5.js:5606)
    at Uu (3ed0e9e7a079e0236cf5.js:5606)
    at Ou (3ed0e9e7a079e0236cf5.js:5603)
    at 3ed0e9e7a079e0236cf5.js:5548
    at t.unstable_runWithPriority (3ed0e9e7a079e0236cf5.js:5842)
    at Ka (3ed0e9e7a079e0236cf5.js:5548)
    at qa (3ed0e9e7a079e0236cf5.js:5548)
    at Xa (3ed0e9e7a079e0236cf5.js:5548)
    at Ue (3ed0e9e7a079e0236cf5.js:5625)
    at en (3ed0e9e7a079e0236cf5.js:5525)
    at HTMLDivElement.r (a50299e8e54f49bd7c07.js:126)
(anonymous) @ a50299e8e54f49bd7c07.js:130
thecatontheceiling commented 2 years ago

i have this problem too with the platform emulator

Kyza commented 2 years ago

I will look into fixing this soon.

shiypc commented 2 years ago

I'm also receiving this error. I'm using macOS 11.0.1.

numikFRKI commented 2 years ago

I also received this error on Windows 10, Windows 11 and Ubuntu 20.04

EconomicSacks commented 2 years ago

I will look into fixing this soon.

Any updates?

SwiftyPop commented 2 years ago

Any updates on this?

ismhdez commented 2 years ago

😶‍🌫️

RobinRMC commented 2 years ago

Soon™

trungnt2910 commented 2 years ago

Check out my repo for a tested and working version (I changed the name to OsSpoof). Download the compiled version for BetterDiscord here if you want to try it.

The author's original version, PlatformEmulator, is using way too many old and broken APIs, not to mention the WebSocket reset API that doesn't work at all.

guihkx commented 2 years ago

@trungnt2910 At least for me, your plugin is making Discord freeze due to high CPU usage. It's fine when I enable it, the problem happens whenever I change the "UI Spoof" option.

EDIT: D'oh. It just clicked for me the meaning of "UI Spoof". And because I'm on Linux, Discord is perhaps trying to do Windows-specific stuff and failing miserably and hogging my CPU.

trungnt2910 commented 2 years ago

@trungnt2910 At least for me, your plugin is making Discord freeze due to high CPU usage. It's fine when I enable it, the problem happens whenever I change the "UI Spoof" option.

EDIT: D'oh. It just clicked for me the meaning of "UI Spoof". And because I'm on Linux, Discord is perhaps trying to do Windows-specific stuff and failing miserably and hogging my CPU.

I haven't changed anything for the UI Spoof part, if there're any problems, it's the original author's fault. (Also, UI Spoof is working fine on my Windows 11 machine) Have you checked out the WebSocket Spoof function (that's the one I heavily changed).

guihkx commented 2 years ago

Have you checked out the WebSocket Spoof

Yup, and that is working indeed. Thx