mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
* Fix documentation for GuildAuditLogEntry.target * Update documentation for CategoryChannel#children * Add EntryTarget for audit logs I've done this to "fulfill" devsneks request while also showing all the possible results for the target of an AuditLogEntry * Oops Eslint * Private timeout sets gets set by BaseClient not WebhookClient * Fix the "Missing Docs" for Presence#activity * Small doc inconsistency Array<Number> instead of Array<number> for Activity * Client#emojis is an EmojiStore not a Collection * Document ClientPresenceStore Just so its clickable through the wiki, nothing else is documented * Small fix for BaseClient#setInterval You don't wait before executing, you execute every X ms * GuildChannelResolvable takes a GuildChannel/Snowflake * Typo in UserResolvable * Another typo for UserResolvable * Add the number to the Status and VoiceStatus docs Its probably not needed, but just so the user knows what each number means, its now documented.
19 lines
434 B
JavaScript
19 lines
434 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<Snowflake, GuildChannel>}
|
|
* @readonly
|
|
*/
|
|
get children() {
|
|
return this.guild.channels.filter(c => c.parentID === this.id);
|
|
}
|
|
}
|
|
|
|
module.exports = CategoryChannel;
|