mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
* Document CategoryChannel * More fixes * Sorry Crawl * createChannel can return CategoryChannel * Did senks requests * I can't grammar * Other snek request
19 lines
409 B
JavaScript
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;
|