Update ShowHiddenChannels.plugin.js
This commit is contained in:
parent
579e0fb5e5
commit
70288c7948
|
@ -2,7 +2,7 @@
|
|||
* @name ShowHiddenChannels
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 3.1.4
|
||||
* @version 3.1.5
|
||||
* @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.1.4",
|
||||
"version": "3.1.5",
|
||||
"description": "Displays all hidden Channels, which can't be accessed due to Role Restrictions, this won't allow you to read them (impossible)"
|
||||
},
|
||||
"changeLog": {
|
||||
|
@ -416,7 +416,7 @@ module.exports = (_ => {
|
|||
}
|
||||
e.instance.props.guildChannels.categories[id].shownChannelIds = channelArray.filter(n => n.renderLevel == renderLevels.SHOW).sort((x, y) => {
|
||||
let xPos = x.record.position + (x.record.isVocal() ? 1e4 : 0) + (sortAtBottom && x._hidden ? 1e5 : 0);
|
||||
let yPos = y.record.position + (y.record.isVocal() ? 1e4 : 0) + (sortAtBottom && x._hidden ? 1e5 : 0);
|
||||
let yPos = y.record.position + (y.record.isVocal() ? 1e4 : 0) + (sortAtBottom && y._hidden ? 1e5 : 0);
|
||||
return xPos < yPos ? -1 : xPos > yPos ? 1 : 0;
|
||||
}).map(n => n.id);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue