Hierarchy

Constructors

  • Parameters

    • client: Client
    • data: {
          _id: string;
          channel: string;
          creator: string;
          server: string;
          type: "Server";
      } | {
          _id: string;
          channel: string;
          creator: string;
          type: "Group";
      }

    Returns ServerInvite

Properties

client: Client
deleted: boolean = false

Accessors

Methods

  • Runs all of the callbacks for this emitter. (meant to run when an update occurs)

    Parameters

    • Optional updated: any[]

      The objects that caused this update.

    Returns void

  • Update this object with new API data.

    Parameters

    • data: Partial<{
          _id: string;
          channel: string;
          creator: string;
          server: string;
          type: "Server";
      } | {
          _id: string;
          channel: string;
          creator: string;
          type: "Group";
      }> = {}

    Returns ServerInvite