SHC: Fix Patch

This commit is contained in:
thororen1234 2026-02-17 20:11:37 -05:00
parent c050bbf58c
commit 23660620b1
No known key found for this signature in database

View file

@ -461,10 +461,10 @@ export default definePlugin({
},
},
{
find: 'className:"channelMention",children:',
find: '"channel_mention"});',
replacement: {
// Show inside voice channel instead of trying to join them when clicking on a channel mention
match: /(?<=getChannel\(\i\);null!=(\i))(?=.{0,100}?selectVoiceChannel)/,
match: /(?<=getChannel\(\i\);if\(null!=(\i))(?=.{0,100}?selectVoiceChannel)/,
replace: (_, channel) => `&&!$self.isHiddenChannel(${channel})`
}
},