Readonly
clientThe client instance.
The unique identifier for the object.
The name of the category.
Readonly
serverThe server this category belongs to.
Retrieves the channels that belong to this category.
A map of channel IDs to their corresponding ServerChannel
instances.
Creates a deep clone of the object.
A clone of the object.
Updates the object with new data and returns a clone of the object.
The data to update the object with.
Optional
clear: string[]Fields to clear in the object.
A clone of the updated object.
Compares this object with another to determine if they are equal.
Optional
obj: null | CategoryThe object to compare with.
true
if the objects are equal, otherwise false
.
Converts the category to a string representation.
The name of the category.
Represents a category in a server, which groups multiple channels together.