rauenzi / BetterDiscordAddons

A series of plugins and themes for BetterDiscord.
Other
579 stars 414 forks source link

[Bug] BetterRoleColors Few bugs, and possible fixes #767

Open BialySztorm opened 2 months ago

BialySztorm commented 2 months ago

Which plugin/theme is this about? BetterRoleColors

Describe the Bug Typing indicator color crashes the discord, but i think this can be discord fault, cause other plugins connect with typing indicator crashing too

Account details patcher not working

Voice users patcher not working

Pop up patcher not working

BialySztorm commented 2 months ago

Fix for patchAccountDetails()

            const usernameSelector = `${containerSelector} .${rawClasses.panelTitleContainer.split(" ").join(".")} > div `;
            const discrimSelector = `${containerSelector} .${rawClasses.panelSubtextContainer.split(" ").join(".")} > div `;
BialySztorm commented 2 months ago

Fix for colorNameTags(element)

            const nameTag = element.querySelector(`[class*="userTag_"]`);

Still figuring out why in log, color for username changing, but in elements not.

Add if for discrim, cause it not always exists in popup