stuff
This commit is contained in:
parent
7f56819716
commit
1939d684c3
|
@ -14,12 +14,12 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "ShowHiddenChannels",
|
"name": "ShowHiddenChannels",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "2.9.2",
|
"version": "2.9.3",
|
||||||
"description": "Display channels that are hidden from you by role restrictions"
|
"description": "Display channels that are hidden from you by role restrictions"
|
||||||
},
|
},
|
||||||
"changeLog": {
|
"changeLog": {
|
||||||
"fixed": {
|
"added": {
|
||||||
"Canary": "Fixed for Channel Store changes on Canary"
|
"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"},
|
showVoice: {value: true, description: "Show hidden Voice Channels"},
|
||||||
showAnnouncement: {value: true, description: "Show hidden Announcement Channels"},
|
showAnnouncement: {value: true, description: "Show hidden Announcement Channels"},
|
||||||
showStore: {value: true, description: "Show hidden Store 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"},
|
alwaysCollapse: {value: false, description: "Always collapse 'Hidden' Category after switching Servers"},
|
||||||
showForNormal: {value: true, description: "Add Access-Overview ContextMenu Entry for non-hidden Channels"}
|
showForNormal: {value: true, description: "Add Access-Overview ContextMenu Entry for non-hidden Channels"}
|
||||||
}
|
}
|
||||||
|
@ -170,7 +171,8 @@ module.exports = (_ => {
|
||||||
this.patchedModules = {
|
this.patchedModules = {
|
||||||
before: {
|
before: {
|
||||||
Channels: "render",
|
Channels: "render",
|
||||||
ChannelCategoryItem: "type"
|
ChannelCategoryItem: "type",
|
||||||
|
VoiceUsers: "render"
|
||||||
},
|
},
|
||||||
after: {
|
after: {
|
||||||
ChannelItem: "default"
|
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) {
|
isChannelHidden (channelId) {
|
||||||
let channel = BDFDB.LibraryModules.ChannelStore.getChannel(channelId);
|
let channel = BDFDB.LibraryModules.ChannelStore.getChannel(channelId);
|
||||||
|
|
|
@ -231,6 +231,10 @@
|
||||||
color: rgb(var(--vaccentcolor));
|
color: rgb(var(--vaccentcolor));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.command-2EsN1V { /* command used command */
|
||||||
|
color: rgb(var(--vaccentcolor));
|
||||||
|
}
|
||||||
|
|
||||||
.icon-360yEu { /* systemmessage guild sub easter egg icon */
|
.icon-360yEu { /* systemmessage guild sub easter egg icon */
|
||||||
color: rgb(var(--vaccentcolor));
|
color: rgb(var(--vaccentcolor));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue