Update ShowHiddenChannels.plugin.js

This commit is contained in:
Mirco Wittrien 2020-09-04 14:56:29 +02:00
parent 7ca2f40ac9
commit 9276557f48
1 changed files with 0 additions and 1 deletions

View File

@ -437,7 +437,6 @@ var ShowHiddenChannels = (_ => {
let roles = (BDFDB.LibraryModules.MemberStore.getMember(guild.id, BDFDB.UserUtils.me.id) || {roles:[]}).roles.length;
if (cachedHiddenChannels && cachedHiddenChannels.id == guild.id && cachedHiddenChannels.roles == roles) return [cachedHiddenChannels.hidden, cachedHiddenChannels.amount];
else {
console.log(guild);
let all = BDFDB.LibraryModules.ChannelStore.getChannels(), hidden = {}, amount = 0;
for (let type in BDFDB.DiscordConstants.ChannelTypes) hidden[BDFDB.DiscordConstants.ChannelTypes[type]] = [];
for (let channel_id in all) {