aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/showHiddenChannels
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-06-14 22:05:15 -0300
committerGitHub <noreply@github.com>2023-06-15 01:05:15 +0000
commit12253837236b0e7b0ed2a90ef58ff691b7bb9154 (patch)
tree5263c74d3a1f182783a96723822a60fe1ccd95cb /src/plugins/showHiddenChannels
parent07a9adbce25e42dcd4d1eb25ee011328d0543304 (diff)
downloadVencord-12253837236b0e7b0ed2a90ef58ff691b7bb9154.tar.gz
Vencord-12253837236b0e7b0ed2a90ef58ff691b7bb9154.tar.bz2
Vencord-12253837236b0e7b0ed2a90ef58ff691b7bb9154.zip
Fix broken SHC patch (#1290)
Diffstat (limited to 'src/plugins/showHiddenChannels')
-rw-r--r--src/plugins/showHiddenChannels/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx
index e32daae..1fb0bd3 100644
--- a/src/plugins/showHiddenChannels/index.tsx
+++ b/src/plugins/showHiddenChannels/index.tsx
@@ -107,8 +107,8 @@ export default definePlugin({
},
{
// Prevent Discord from trying to connect to hidden channels
- match: /if\(!\i&&!\i(?=.{0,50}?selectVoiceChannel\((\i)\.id\))/,
- replace: (m, channel) => `${m}&&!$self.isHiddenChannel(${channel})`
+ match: /(?=\|\|\i\.default\.selectVoiceChannel\((\i)\.id\))/,
+ replace: (_, channel) => `||$self.isHiddenChannel(${channel})`
},
{
// Make Discord show inside the channel if clicking on a hidden or locked channel