diff --git a/src/equicordplugins/cleanerChannelGroups/index.ts b/src/equicordplugins/cleanerChannelGroups/index.ts new file mode 100644 index 000000000..73f5ba4ce --- /dev/null +++ b/src/equicordplugins/cleanerChannelGroups/index.ts @@ -0,0 +1,29 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2026 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { EquicordDevs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +export default definePlugin({ + name: "CleanerChannelGroups", + description: "Hides all channels in collapsed categories, even if they have unread messages.", + authors: [EquicordDevs.justjxke], + patches: [ + { + find: '"placeholder-channel-id"', + replacement: [ + { + match: /this\.category\.isCollapsed&&\(.{0,600}?\)\?\{renderLevel:3,threadIds:/, + replace: "this.category.isCollapsed?{renderLevel:3,threadIds:" + }, + { + match: /(?<=!this.category.isCollapsed.{0,50}\i=)(\i\(this\.record,.{0,5},\i\.hideMutedChannels\);)/, + replace: "this.category.isCollapsed?[]:$1" + } + ] + } + ] +});