Skip to content

BetterGuildTooltip: Fixed startup crash - #195

Open
43eayl5 wants to merge 2 commits into
okdevme:masterfrom
43eayl5:a
Open

BetterGuildTooltip: Fixed startup crash#195
43eayl5 wants to merge 2 commits into
okdevme:masterfrom
43eayl5:a

Conversation

@43eayl5

@43eayl5 43eayl5 commented Aug 11, 2026

Copy link
Copy Markdown

closes #187

@okdevme okdevme left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! Please see the comments.

const Selectors = {
Guild: Webpack.getByKeys('statusOffline', 'guildDetail')
get Guild () {
return Webpack.getByKeys('statusOffline', 'guildDetail') ?? {}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause the module search, which is a very heavy operation, running on every render, multiple times. The module search must be a one-time operation.

Also, the tooltip sometimes randomly disappears instantly after it opens, which is probably caused by this.

const GuildTooltip = [...Webpack.getWithKey(Filters.byStrings('guild', '__unsupportedReactNodeAsText'), { target: Webpack.getBySource('GuildTooltip', { raw: true })?.declarations })]
const GuildActions = {
get preload () {
return Webpack.getByKeys('preload', 'closePrivateChannel')?.preload

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing, the module search must be a one-time operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BetterGuildTooltip crash after Discord v1.0.9243 update

2 participants