CategoryChannel
CategoryChannel ⇐ Channel
Section titled “CategoryChannel ⇐ Channel”Represents a category channel in a guild.
Kind: global class
Extends: Channel
- CategoryChannel ⇐
Channel- new CategoryChannel([data], guildId, client)
- .childrens ⇒
Collection.<Snowflake, GuildChannel> - .highest ⇒
new CategoryChannel([data], guildId, client)
Section titled “new CategoryChannel([data], guildId, client)”Constructs a new instance of the class.
| Param | Type | Description |
|---|---|---|
| [data] | Object | The data object to initialize the instance with. |
| guildId | string | The ID of the guild associated with the instance. |
| client | Client | The client instance associated with the instance. |
categoryChannel.childrens ⇒ Collection.<Snowflake, GuildChannel>
Section titled “categoryChannel.childrens ⇒ Collection.<Snowflake, GuildChannel>”Retrieves the child channels of the current channel.
Kind: instance property of CategoryChannel
Returns: Collection.<Snowflake, GuildChannel> - A collection of child channels.
categoryChannel.highest ⇒
Section titled “categoryChannel.highest ⇒”Get the highest child element based on their position property.
Kind: instance property of CategoryChannel
Returns: The highest child element.