mwittrien / BetterDiscordAddons

A series of plugins and themes for BetterDiscord.
GNU General Public License v2.0
2.05k stars 3.88k forks source link

[BUG] - BDFDB #2695

Closed ElyFura closed 1 month ago

ElyFura commented 1 month ago

Describe the bug Started Discord today and it opened normaly, after like 1-2 Minutes it just crashed

To Reproduce Nothing, just wait and let Discord load

Discord Build (stable, ptb or canary): Discord Stable

Additional context

image_2024-05-23_164102777

Which is this section

MyReact.hookCall = function (callback, args, ignoreErrors = false) {
    if (typeof callback != "function") return null;
    let returnValue = null, tempNode = document.createElement("div");
    BDFDB.ReactUtils.render(BDFDB.ReactUtils.createElement(_ => {
        returnValue = callback(args);
        return null;
    }, {}, false, ignoreErrors), tempNode, ignoreErrors);
    BDFDB.ReactUtils.unmountComponentAtNode(tempNode);
    return returnValue;
};

also this error

image_2024-05-23_163805280

which is this section

const button = BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Button, {
    look: Internal.LibraryComponents.Button.Looks.BLANK, <-
    size: Internal.LibraryComponents.Button.Sizes.NONE,
    "aria-label": this.props.label,
    tabIndex: this.props.tabIndex,
    className: BDFDB.DOMUtils.formatClassName(this.props.isActive && BDFDB.disCN.textareabuttonactive),
    innerClassName: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.textareabutton, this.props.className, this.props.pulse && BDFDB.disCN.textareaattachbuttonplus),
    onClick: this.props.onClick,
    onContextMenu: this.props.onContextMenu,
    onMouseEnter: this.props.onMouseEnter,
    onMouseLeave: this.props.onMouseLeave,
    children: this.props.tooltip && this.props.tooltip.text ? BDFDB.ReactUtils.createElement(Internal.LibraryComponents.TooltipContainer, Object.assign({}, this.props.tooltip, {children: inner})) : inner
});
Sinalorr commented 1 month ago

Same here - Happens on canary aswell