mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 05:52:05 +00:00
parent
f4c2d6dfa2
commit
c523e224d7
1 changed files with 3 additions and 4 deletions
|
|
@ -1132,10 +1132,9 @@ class Guild extends Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
_sortedChannels(channel) {
|
_sortedChannels(channel) {
|
||||||
if (channel.type === Constants.ChannelTypes.CATEGORY) {
|
const category = channel.type === Constants.ChannelTypes.CATEGORY;
|
||||||
return Util.discordSort(this.channels.filter(c => c.type === Constants.ChannelTypes.CATEGORY));
|
return Util.discordSort(this.channels.filter(c =>
|
||||||
}
|
c.type === channel.type && (category || c.parent === channel.parent)));
|
||||||
return Util.discordSort(this.channels.filter(c => c.parent === channel.parent));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue