aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/showHiddenChannels/index.tsx
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-06-20 17:11:50 -0300
committerGitHub <noreply@github.com>2023-06-20 22:11:50 +0200
commit9820b79dfe39a2ea5105a6160bba7a714fa185fa (patch)
tree41603a76dc0107f2645223c3b1d48952ce86bd6c /src/plugins/showHiddenChannels/index.tsx
parentab811470fcaa56223712edebeea02a0d1da30990 (diff)
downloadVencord-9820b79dfe39a2ea5105a6160bba7a714fa185fa.tar.gz
Vencord-9820b79dfe39a2ea5105a6160bba7a714fa185fa.tar.bz2
Vencord-9820b79dfe39a2ea5105a6160bba7a714fa185fa.zip
SHC: show active now voice members; PermViewer: improve styling (#1314)
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 1fb0bd3..64500c4 100644
--- a/src/plugins/showHiddenChannels/index.tsx
+++ b/src/plugins/showHiddenChannels/index.tsx
@@ -419,6 +419,14 @@ export default definePlugin({
match: /(?<=getChannels\(\i)(?=\))/,
replace: ",true"
}
+ },
+ {
+ find: '.displayName="NowPlayingViewStore"',
+ replacement: {
+ // Make active now voice states on hiddenl channels
+ match: /(getVoiceStateForUser.{0,150}?)&&\i\.\i\.canWithPartialContext.{0,20}VIEW_CHANNEL.+?}\)(?=\?)/,
+ replace: "$1"
+ }
}
],