mirror of
https://github.com/danbulant/discord.js
synced 2026-05-29 20:30:38 +00:00
18 lines
430 B
JavaScript
18 lines
430 B
JavaScript
const GuildChannel = require('./GuildChannel');
|
|
|
|
/**
|
|
* Represents a guild category channel on Discord.
|
|
* @extends {GuildChannel}
|
|
*/
|
|
class CategoryChannel extends GuildChannel {
|
|
/**
|
|
* Channels that are part of this category
|
|
* @type {?Collection<Snowflake, GuildChannel>}
|
|
* @readonly
|
|
*/
|
|
get children() {
|
|
return this.guild.channels.filter(c => c.parentID === this.id);
|
|
}
|
|
}
|
|
|
|
module.exports = CategoryChannel;
|