diff options
-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 |