Skip to content

CategoryChannel

CategoryChannel ⇐ Channel

Represents a category channel in a guild.

Kind: global class
Extends: Channel

new CategoryChannel([data], guildId, client)

Constructs a new instance of the class.

ParamTypeDescription
[data]ObjectThe data object to initialize the instance with.
guildIdstringThe ID of the guild associated with the instance.
clientClientThe client instance associated with the instance.

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 ⇒

Get the highest child element based on their position property.

Kind: instance property of CategoryChannel
Returns: The highest child element.