Class EmojiCollection

Collection of Emoji

Hierarchy (View Summary)

Constructors

Properties

client: Client
getUnderlyingObject: (id: string) => HydratedEmoji
updateUnderlyingObject: SetStoreFunction<Record<string, HydratedEmoji>>

Methods

  • Create a new instance of an object

    Parameters

    • id: string

      Id

    • type:
          | "user"
          | "server"
          | "channel"
          | "bot"
          | "channelUnread"
          | "channelWebhook"
          | "emoji"
          | "message"
          | "serverMember"
          | "session"

      Type

    • instance: Emoji

      Instance

    • context: unknown

      Context

    • Optionaldata: unknown

      Data

    Returns void

  • Get or create

    Parameters

    • id: string

      Id

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

      Data

      • _id: string

        Unique Id

      • Optionalanimated?: boolean

        Whether the emoji is animated

      • creator_id: string

        Uploader user id

      • name: string

        Emoji name

      • Optionalnsfw?: boolean

        Whether the emoji is marked as nsfw

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

        What owns this emoji

    • isNew: boolean = false

      Whether this object is new

    Returns Emoji

MMNEPVFCICPMFPCPTTAAATR