aarondoet / AccountSwitcher

BetterDiscord plugin to switch between multiple accounts
MIT License
229 stars 79 forks source link

could not be constructed #78

Open kuyajoseph opened 2 years ago

kuyajoseph commented 2 years ago

It doesn't show up in my plugins list but is in my plugins folder. Every time I boot up BD, it says the plugin "could not be constructed", and whenever I try to click on the error log it crashes and prompts me to reload/restart BD.

Snowad14 commented 2 years ago

same for me, the problem is new because I had no problem before

IrcDirk commented 2 years ago

same...

ItsdMeSoFYou commented 2 years ago

same here after update

blobbyblo commented 2 years ago

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

bainchild commented 2 years ago

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

Might be a version of this, but I removed the @cc_on ... @ else part and it worked

IrcDirk commented 2 years ago

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

Might be a version of this, but I removed the @cc_on ... @ else part and it worked

It worked for me too...

kuyajoseph commented 2 years ago

Yep this worked for me! Glad there's an easy resolution.

blobbyblo commented 2 years ago

This only happens because modifying the file forces BD to reload it, and it works because it is reloaded while BD is initialized and hopefully the module AccountSwitcher depends on is cached at this time.

parhammed commented 2 years ago

same

ghost commented 2 years ago

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

Might be a version of this, but I removed the @cc_on ... @ else part and it worked

not working for me lol

you mind telling me exactly which lines of code you deleted?

kintonc commented 2 years ago

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

Confirming that this fix work, thanks

aarondoet commented 2 years ago

If you go into your BD plugins folder and "refresh" the AccountSwitcher.plugin.js file (move it out of the directory and back in) it will load properly until a permanent fix is released.

Might be a version of this, but I removed the @cc_on ... @ else part and it worked

if you have a working fix, please create a PR so that i can just merge it. dont want to bother with this at all rn.

ezeholz commented 2 years ago

~This is not a full fix, and should not be treated like one. But I fix this error for those who had the plugin already configured. I heavily doubt this could be a final version, mostly because I believe it's gonna crash the minute you open the settings menu of the plugin. Feel free to use it until I try to fix this error. :D https://github.com/ezeholz/AccountSwitcher/tree/hotfix-78~

It's not worth it anymore, just wait until discord provides it

blobbyblo commented 2 years ago

@ezeholz, This just removes keybinds via KeyRecorder and is not a fix, it just breaks the plug-in. What needs to be changed is to force KeyRecorder to load or switch to key events.

I have an example of this in MultiAccounts plug-in.