diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx index 4d828acd..95b16d62 100644 --- a/src/plugins/showHiddenChannels/index.tsx +++ b/src/plugins/showHiddenChannels/index.tsx @@ -414,6 +414,22 @@ export default definePlugin({ } ] }, + { + // Make the chat input bar channel list contain hidden channels + find: ",queryStaticRouteChannels(", + replacement: [ + { + // Make the getChannels call to GuildChannelStore return hidden channels + match: /(?<=queryChannels\(\i\){.+?getChannels\(\i)(?=\))/, + replace: ",true" + }, + { + // Avoid filtering out hidden channels from the channel list + match: /(?<=queryChannels\(\i\){.+?isGuildChannelType\)\((\i)\.type\))(?=&&!\i\.\i\.can\()/, + replace: "&&!$self.isHiddenChannel($1)" + } + ] + }, { find: "\"^/guild-stages/(\\\\d+)(?:/)?(\\\\d+)?\"", replacement: {