diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-06-14 22:05:15 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 01:05:15 +0000 |
commit | 12253837236b0e7b0ed2a90ef58ff691b7bb9154 (patch) | |
tree | 5263c74d3a1f182783a96723822a60fe1ccd95cb /src/plugins | |
parent | 07a9adbce25e42dcd4d1eb25ee011328d0543304 (diff) | |
download | Vencord-12253837236b0e7b0ed2a90ef58ff691b7bb9154.tar.gz Vencord-12253837236b0e7b0ed2a90ef58ff691b7bb9154.tar.bz2 Vencord-12253837236b0e7b0ed2a90ef58ff691b7bb9154.zip |
Fix broken SHC patch (#1290)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/showHiddenChannels/index.tsx | 4 |
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 |