From e49df8952fb14fe5023949af3cf69f9aaa9c02ec Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Sat, 24 Aug 2019 22:53:32 +0100 Subject: [PATCH] Fix guild component selector --- client/src/modules/reactcomponents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/modules/reactcomponents.js b/client/src/modules/reactcomponents.js index eac2a7de..dab5db7f 100644 --- a/client/src/modules/reactcomponents.js +++ b/client/src/modules/reactcomponents.js @@ -473,8 +473,8 @@ export class ReactAutoPatcher { } static async patchGuild() { - const selector = `div.${Reflection.resolve('container', 'guildIcon', 'selected', 'unread').className}:not(:first-child)`; - this.Guild = await ReactComponents.getComponent('Guild', {selector}, m => m.prototype.renderBadge); + const { selector } = Reflection.resolve('listItem', 'guildSeparator', 'selected', 'friendsOnline'); + this.Guild = await ReactComponents.getComponent('Guild', {selector}, m => m.displayName === 'Guild'); this.unpatchGuild = MonkeyPatch('BD:ReactComponents', this.Guild.component.prototype).after('render', (component, args, retVal) => { const { guild } = component.props;