riolubruh / YABDP4Nitro

Yet Another BetterDiscord Plugin for Nitro features. Unlock screensharing modes, use cross-server and gif emotes and much more!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Opening the Account Panel breaks experiments

speedlorenzo12 opened this issue · comments

your profile or another is the same

?????

I... don't see anything wrong?? I watched the video at least a dozen times but I just don't understand what you mean.

The experiments gone when i returned in the settings

Ah, I see it now lol. Yeah, I'm not exactly sure why, but for some unfathomable reason, opening that specific menu breaks both App Icons and apparently also Experiments. Not really sure what causes it yet.

Still not exactly sure what exactly causes it, it's something that happens during the rendering of the account panel...
...but either way I did find a way to workaround the issue.
It seems like opening the account panel, like, kind of like re-fetches the current user or something for some reason...?
So the workaround is to correct the premiumType and flag values (for app icons and experiments respectively) after the account panel renders.
The app icon will flash blue, but the experiments won't have anything weird like that happen since ig that function doesn't check the user flags as often? idfk honestly lol