Update ShowHiddenChannels.plugin.js

This commit is contained in:
Mirco Wittrien 2020-03-17 08:41:34 +01:00
parent 5b34436667
commit b7dc585ff6
1 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ var ShowHiddenChannels = (_ => {
return class ShowHiddenChannels { return class ShowHiddenChannels {
getName () {return "ShowHiddenChannels";} getName () {return "ShowHiddenChannels";}
getVersion () {return "2.7.0";} getVersion () {return "2.7.1";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -14,12 +14,12 @@ var ShowHiddenChannels = (_ => {
constructor () { constructor () {
this.changelog = { this.changelog = {
"added":[["Blacklist","You can now configure the list of servers you want to see hidden channels in"]] "fixed":[["Working","Fuck u Discord"]]
}; };
this.patchedModules = { this.patchedModules = {
before: { before: {
Channels: "render" GuildSidebar: "render"
}, },
after: { after: {
ChannelItem: ["render", "componentDidMount", "componentDidUpdate"] ChannelItem: ["render", "componentDidMount", "componentDidUpdate"]
@ -244,7 +244,7 @@ var ShowHiddenChannels = (_ => {
} }
} }
processChannels (e) { processGuildSidebar (e) {
if (!e.instance.props.guild || blacklist.includes(e.instance.props.guild.id)) return; if (!e.instance.props.guild || blacklist.includes(e.instance.props.guild.id)) return;
let [hiddenChannels, amount] = this.getHiddenChannels(e.instance.props.guild); let [hiddenChannels, amount] = this.getHiddenChannels(e.instance.props.guild);
if (amount) { if (amount) {