revbot.js
    Preparing search index...

    Class Category

    Represents a category in a server, which groups multiple channels together.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Creates a new Category instance.

      Parameters

      • server: Server

        The server this category belongs to.

      • data: { channels: string[]; id: string; title: string }

        The raw data for the category from the API.

        • channels: string[]

          Channels in this category

        • id: string

          Unique ID for this category

        • title: string

          Title for this category

      Returns Category

    Properties

    client: client

    The client instance.

    id: string

    The unique identifier for the object.

    name: string

    The name of the category.

    server: Server

    The server this category belongs to.

    Accessors

    Methods

    • Updates the object with new data and returns a clone of the object.

      Parameters

      • data: PartialObject

        The data to update the object with.

      • Optionalclear: string[]

        Fields to clear in the object.

      Returns this

      A clone of the updated object.