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
This commit is contained in:
Frangu Vlad
2017-09-09 21:18:41 +03:00
committed by Crawl
parent c46c092d0d
commit 5b46ae59bd
3 changed files with 15 additions and 3 deletions

View File

@@ -1,6 +1,15 @@
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);
}