This commit is contained in:
Mirco Wittrien 2021-02-05 12:59:29 +01:00
parent 7f56819716
commit 1939d684c3
2 changed files with 14 additions and 4 deletions

View File

@ -14,12 +14,12 @@ module.exports = (_ => {
"info": {
"name": "ShowHiddenChannels",
"author": "DevilBro",
"version": "2.9.2",
"version": "2.9.3",
"description": "Display channels that are hidden from you by role restrictions"
},
"changeLog": {
"fixed": {
"Canary": "Fixed for Channel Store changes on Canary"
"added": {
"Hide connected voice users": "You can now disable the option to show users who are in a hidden voice channel"
}
}
};
@ -162,6 +162,7 @@ module.exports = (_ => {
showVoice: {value: true, description: "Show hidden Voice Channels"},
showAnnouncement: {value: true, description: "Show hidden Announcement Channels"},
showStore: {value: true, description: "Show hidden Store Channels"},
showVoiceUsers: {value: true, description: "Show connected Users in hidden Voice Channels"},
alwaysCollapse: {value: false, description: "Always collapse 'Hidden' Category after switching Servers"},
showForNormal: {value: true, description: "Add Access-Overview ContextMenu Entry for non-hidden Channels"}
}
@ -170,7 +171,8 @@ module.exports = (_ => {
this.patchedModules = {
before: {
Channels: "render",
ChannelCategoryItem: "type"
ChannelCategoryItem: "type",
VoiceUsers: "render"
},
after: {
ChannelItem: "default"
@ -455,6 +457,10 @@ module.exports = (_ => {
}
}
}
processVoiceUsers (e) {
if (!settings.showVoiceUsers && this.isChannelHidden(e.instance.props.channel.id)) e.instance.props.voiceStates = [];
}
isChannelHidden (channelId) {
let channel = BDFDB.LibraryModules.ChannelStore.getChannel(channelId);

View File

@ -231,6 +231,10 @@
color: rgb(var(--vaccentcolor));
}
.command-2EsN1V { /* command used command */
color: rgb(var(--vaccentcolor));
}
.icon-360yEu { /* systemmessage guild sub easter egg icon */
color: rgb(var(--vaccentcolor));
}