mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
add channel categories (#1727)
* add channel categories * add specific class * speed * Update Channel.js * fix type typo * Update Channel.js * rewrite position stuff in prep for category sorting * fix small issues in generation of permissions * Update Guild.js * Update Constants.js * Update GuildChannel.js * doc fix * Update GuildChannel.js * <.<
This commit is contained in:
9
src/structures/CategoryChannel.js
Normal file
9
src/structures/CategoryChannel.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const GuildChannel = require('./GuildChannel');
|
||||
|
||||
class CategoryChannel extends GuildChannel {
|
||||
get children() {
|
||||
return this.guild.channels.filter(c => c.parentID === this.id);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = CategoryChannel;
|
||||
Reference in New Issue
Block a user