aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/showHiddenChannels/index.tsx
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-19 22:03:33 -0300
committerGitHub <noreply@github.com>2023-03-19 22:03:33 -0300
commite36f4e5b0aed93f6b24a42eb738fc5f38579bf3c (patch)
treeab16d02f33e949fc34f9c0bc457fc8f861b931aa /src/plugins/showHiddenChannels/index.tsx
parent4aff11421f1cccaf34a7c983fd8dc9a841042947 (diff)
downloadVencord-e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c.tar.gz
Vencord-e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c.tar.bz2
Vencord-e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c.zip
Fixes and make guild tooltip show users inside hidden voice channels (#613)
* Fix #509 * Fix #597 * Fix #594
Diffstat (limited to 'src/plugins/showHiddenChannels/index.tsx')
-rw-r--r--src/plugins/showHiddenChannels/index.tsx8
1 files changed, 8 insertions, 0 deletions
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`
+ }
}
],