'use strict'; const GuildChannel = require('./GuildChannel'); /** * Represents a guild category channel on Discord. * @extends {GuildChannel} */ class CategoryChannel extends GuildChannel { /** * Channels that are a part of this category * @type {Collection} * @readonly */ get children() { return this.guild.channels.cache.filter(c => c.parentId === this.id); } /** * Sets the category parent of this channel. * It is not currently possible to set the parent of a CategoryChannel. * @method setParent * @memberof CategoryChannel * @instance * @param {?CategoryChannelResolvable} channel The channel to set as parent * @param {SetParentOptions} [options={}] The options for setting the parent * @returns {Promise} */ } module.exports = CategoryChannel;