revbot.js
    Preparing search index...

    Class BaseAbstract

    Represents the base structure for all objects in the client. Provides common functionality such as equality checks, cloning, and patching data.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    client: client

    The client instance.

    id: string

    The unique identifier for the object.

    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.

    • Compares this object with another to determine if they are equal.

      Parameters

      • Optionalobj: null | Base

        The object to compare with.

      Returns boolean

      true if the objects are equal, otherwise false.