From e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sun, 19 Mar 2023 22:03:33 -0300 Subject: Fixes and make guild tooltip show users inside hidden voice channels (#613) * Fix #509 * Fix #597 * Fix #594 --- src/plugins/showHiddenChannels/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins/showHiddenChannels/index.tsx') diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx index eb49468..318bad2 100644 --- a/src/plugins/showHiddenChannels/index.tsx +++ b/src/plugins/showHiddenChannels/index.tsx @@ -335,6 +335,14 @@ export default definePlugin({ match: /(?<=getChannel\((\i)\)\)(?=.{0,100}?selectVoiceChannel))/, replace: (_, channelId) => `&&!$self.isHiddenChannel({channelId:${channelId}})` } + }, + { + find: '.displayName="GuildChannelStore"', + replacement: { + // Make GuildChannelStore contain hidden channels for users in voice channels to appear in the guild tooltip + match: /isChannelGated\(.+?\)(?=\|\|)/, + replace: m => `${m}||true` + } } ], -- cgit