fix ShowHiddenChannels patch

This commit is contained in:
Vendicated 2025-12-06 21:43:25 +01:00
parent fa46c4c4d2
commit ed51391efc
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -457,11 +457,11 @@ export default definePlugin({
// Filter hidden channels from GuildChannelStore.getChannels unless told otherwise
match: /(?<=getChannels\(\i)(\){.*?)return (.+?)}/,
replace: (_, rest, channels) => `,shouldIncludeHidden${rest}return $self.resolveGuildChannels(${channels},shouldIncludeHidden??arguments[0]==="@favorites");}`
}
},
]
},
{
find: "#{intl::FORM_LABEL_MUTED}",
find: ".invitesDisabledTooltip",
replacement: {
// Make GuildChannelStore.getChannels return hidden channels
match: /(?<=getChannels\(\i)(?=\))/,