bepvte / bd-addons

my betterdiscord addons
MIT License
29 stars 11 forks source link

CanaryLinks fails #29

Closed actualdankcoder closed 2 years ago

actualdankcoder commented 2 years ago

Upon importing the CanaryLinks plugin, an error occurs

Uncaught (in promise) TypeError: Cannot read property 'exports' of undefined

The error tends to point to this segment of the code

  const copyLinkItem = WebpackModules.getByIndex(
    WebpackModules.getIndex(Filters.byDisplayName("useMessageCopyLinkItem"))
  );
bepvte commented 2 years ago

Discord started loading the right click menus code only when you right click on a message. Because plugins usually do all their work at startup, fixing this is very difficult for me right now. The BD guys are working on a way of making this easier to do, so for until then CanaryLinks will be a bit broken.