Files
discord.js/src/structures/CategoryChannel.js
Frangu Vlad 5b46ae59bd Fix some documentation about the category channels (#1917)
* Document CategoryChannel

* More fixes

* Sorry Crawl

* createChannel can return CategoryChannel

* Did senks requests

* I can't grammar

* Other snek request
2017-09-09 20:18:41 +02:00

19 lines
409 B
JavaScript

const GuildChannel = require('./GuildChannel');
/**
* Represents a guild category channel on Discord.
* @extends {GuildChannel}
*/
class CategoryChannel extends GuildChannel {
/**
* The channels that are part of this category
* @type {?Collection}
* @readonly
*/
get children() {
return this.guild.channels.filter(c => c.parentID === this.id);
}
}
module.exports = CategoryChannel;