AccountSwitcher icon indicating copy to clipboard operation
AccountSwitcher copied to clipboard

could not be constructed

Open kuyajoseph opened this issue 2 years ago • 14 comments

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.

kuyajoseph avatar Feb 17 '22 07:02 kuyajoseph

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

Snowad14 avatar Feb 17 '22 12:02 Snowad14

same...

IrcDirk avatar Feb 17 '22 15:02 IrcDirk

same here after update

ItsdMeSoFYou avatar Feb 17 '22 19:02 ItsdMeSoFYou

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.

blobbyblo avatar Feb 18 '22 00:02 blobbyblo

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

bainchild avatar Feb 18 '22 02:02 bainchild

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...

IrcDirk avatar Feb 18 '22 04:02 IrcDirk

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

kuyajoseph avatar Feb 18 '22 06:02 kuyajoseph

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.

blobbyblo avatar Feb 19 '22 06:02 blobbyblo

same

parhammed avatar Feb 19 '22 07:02 parhammed

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?

ghost avatar Feb 20 '22 20:02 ghost

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

kintonc avatar Feb 20 '22 22:02 kintonc

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.

aarondoet avatar Feb 21 '22 00:02 aarondoet

~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

ezeholz avatar Mar 02 '22 04:03 ezeholz

@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.

blobbyblo avatar Mar 02 '22 20:03 blobbyblo