This commit is contained in:
Mirco Wittrien 2022-07-05 16:14:11 +02:00
parent ed224ed223
commit e92da2a6bc
2 changed files with 3 additions and 4 deletions

View File

@ -29,7 +29,6 @@
"CategoryCollapseStore": {"props": ["getCollapsedCategories", "isCollapsed"]},
"CategoryCollapseUtils": {"props": ["categoryCollapse", "categoryCollapseAll"]},
"ChannelIconUtils": {"props": ["getChannelIconComponent", "getChannelIconTooltipText"]},
"ChannelListHoistedRowsStore": {"strings": ["useIsThreadModerator", ".ChannelListHoistedRow."]},
"ChannelListStore": {"name": "ChannelListStore"},
"ChannelUtils": {"props": ["selectChannel", "selectPrivateChannel"]},
"ChannelStore": {"props": ["getChannel", "getDMFromUserId"]},

View File

@ -2,7 +2,7 @@
* @name ShowHiddenChannels
* @author DevilBro
* @authorId 278543574059057154
* @version 3.2.1
* @version 3.2.2
* @description Displays all hidden Channels, which can't be accessed due to Role Restrictions, this won't allow you to read them (impossible)
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "ShowHiddenChannels",
"author": "DevilBro",
"version": "3.2.1",
"version": "3.2.2",
"description": "Displays all hidden Channels, which can't be accessed due to Role Restrictions, this won't allow you to read them (impossible)"
}
};
@ -396,7 +396,7 @@ module.exports = (_ => {
processChannels (e) {
if (!e.instance.props.guild || e.instance.props.guild.id.length < 16) return;
let show = !blackList.includes(e.instance.props.guild.id), sortAtBottom = this.settings.sortOrder.hidden == sortOrders.BOTTOM.value;
//e.instance.props.guildChannels = new e.instance.props.guildChannels.constructor(e.instance.props.guildChannels.id);
e.instance.props.guildChannels = new e.instance.props.guildChannels.constructor(e.instance.props.guildChannels.id, e.instance.props.guildChannels.hoistedSection.hoistedRows);
e.instance.props.guildChannels.categories = Object.assign({}, e.instance.props.guildChannels.categories);
hiddenChannelCache[e.instance.props.guild.id] = [];
let processCategory = (category, insertChannelless) => {