Hierarchy

Constructors

  • Parameters

    • client: Client
    • data: {
          _id: string;
          animated?: boolean;
          creator_id: string;
          name: string;
          nsfw?: boolean;
          parent: {
              id: string;
              type: "Server";
          } | {
              type: "Detached";
          };
      }
      • _id: string

        Description

        Unique Id

      • Optional animated?: boolean

        Description

        Whether the emoji is animated

      • creator_id: string

        Description

        Uploader user id

      • name: string

        Description

        Emoji name

      • Optional nsfw?: boolean

        Description

        Whether the emoji is marked as nsfw

      • parent: {
            id: string;
            type: "Server";
        } | {
            type: "Detached";
        }

        Description

        What owns this emoji

    Returns Emoji

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;
          animated?: boolean;
          creator_id: string;
          name: string;
          nsfw?: boolean;
          parent: {
              id: string;
              type: "Server";
          } | {
              type: "Detached";
          };
      }> = {}

    Returns Emoji