From 12253837236b0e7b0ed2a90ef58ff691b7bb9154 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Wed, 14 Jun 2023 22:05:15 -0300 Subject: [PATCH] Fix broken SHC patch (#1290) --- src/plugins/showHiddenChannels/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx index e32daaef..1fb0bd35 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